I don't quite understand your question but perhaps try:



scanf(" %c",&c); // note the leading space before the %c


This will consume any characters that isspace() would return true for (\n...