i compiled your code ok. it causes a segv.
read the man page or other documentation for fscanf. use a debugger to see that the problem is the last line of this part of your code:
void...
Type: Posts; User: jmholber
i compiled your code ok. it causes a segv.
read the man page or other documentation for fscanf. use a debugger to see that the problem is the last line of this part of your code:
void...
what you posted is not what you are compiling. please post the code you are compiling
what you posted will not compile because you define
Compare(float) but call
compare(float)
when i...
Pointers On C
Kenneth A. Reek
ISBN = 0673999866
Good for programmers experienced with other languages who want to learn C. Covers pointers very well, and has lots of practical advice and...
uh... WTF were you thinking?
the string does not get copied to the pointer. the address of the first character of the string gets copied.
thus printf goes to the address of the beginning of the string and spits out everything...