fflush(stdin) not working?

	printf("Please insert what directory to perform RW test on (excluding ending /): ");
	flushall();
	i=0;
	c='a';
	printf("\n\n%d\n\n",c);  // 1st printf check
	fflush(stdin);
	fflush(stdin);
	fflush(stdin);
	while( (c=getchar()) != '\n' ){
		if( c == ' ' )
			continue;
		filepath[i] = c;
		i++;
	}
	printf("\n\n%d\n\n",c); // 2nd printf check

c is on the first printf check 97 as it should be, but the moment i call c=getchar() without inputting anything, c is 10 (newline) and the while-loop gets ignored totally, even if i put that many fflush(stdin) in front …

somehow i wonder if fflush(stdin) puts an \n into the stream-stdin…

Now the most funny thing (i tried getchar also without the fflush*):

	printf("Please insert what directory to perform RW test on (excluding ending / and no whitespaces): \n");
	scanf("%s",&filepath);
	strcat(filepath,'/');
	strcat(filepath,FILENAME);

This works fine :stuck_out_tongue_winking_eye: