reading from STD IN (scanf , gets and read wont work)
Is there any way to just read in a string including spaces from STDIN?
Scanf stops after the first space Gets doesnt really work Read needs to know the exact length in advance |
char buf[50];
fgets(buf, sizeof(buf), stdin); |
All times are GMT -5. The time now is 11:43 PM. |