isn't that nice

Code:
#include <stdio.h>

int main()
{
	char posNumChar[30];

    printf("Please enter positive number: ");
	
    fgets(posNumChar, 30, stdin);

    printf("You entered this positive number, %s", posNumChar);

    getchar();
}
now I want to do the second step.. which is asking the user for the base of the number he entered..

I've been asked to avoid using scanf() to a character and using getchar() --- IN THIS STEP only !

is there any other functions that work the same way as scanf and getchar !! ..