C-FAQ #1219
Avinash Narwekar
02:08s400 comment
STDIO I was trying to use the return value of scanf to ensure valid input; but it sometimes goes into an infinite loop : int i; while (1) { if (scanf (“%d”,&i) == 1) break; }
Link
Social
Embed code