Kam is the genitive complement in «غُلَامَ كَمْ رَجُلًا».

Al-Kināyāt — Kam, its Tamyīz and Syntactic Positions