Thanks laserlight and itme86! I think I understand. Make a mental note: when debugging, make sure you actually properly code your debugging code.
Indeed, I used printf incorrectly, causing all...
Type: Posts; User: Ferris
Thanks laserlight and itme86! I think I understand. Make a mental note: when debugging, make sure you actually properly code your debugging code.
Indeed, I used printf incorrectly, causing all...
Yes, this is what I thought, but I don't get the desired behaviour when I try to use it as such. Perhaps my use of puts is wrong, however, changing the code to printf still outputs 'his is a test'...
I know of the existence of fgetc, but it is cumbersome for my application, since it needs read a line, and then perform multiple operations on it. Using fgetc would mean reading, rewinding, skipping...
Thanks for your reply!
Perhaps I should have clarified this a bit more. I don't want to read the entire string, that I can do. What I want to do is read a single character from it. I would have...
Hey all,
For a few days now I've been trying on and off to figure out a problem while using fgets, and I can't seem to crack it. The issue is I want to use fgets to read a line, dump that output...