Hi!
I'm wondering whether there is a safe gets which allocates new memory for the string, like scanf("%as", &s), with the difference that it scans the whole line instead of stopping at a blank space. Or can you modify scanf("%as", &s) to stop reading only at new line characters?