using fgets/sscanf wiht c
im having trouble trying to get fgets and sscanf to work. im getting a segmentation fault right at the sscanf line of this code... can anyone tell me the reason?
Code:
int main() { NEVERMID, FOUND MY PROBLEM, PLEASE REMOVE!! |
That's weird. I compiled it on my machine, and it works.
Could you tell which compiler you are using? |
So what was the problem (besides the "&integ" in your "printf()" - which *shouldn't* cause a segv)?
|
All times are GMT -5. The time now is 12:35 PM. |