Help with simple C string function
Hi all
I have my main function as below : I have included a couple of printfs. I need to know why the program never prints printf("1")even when the value of S is given as 0. Thanks in advance Code:
int main() |
Your program is incomplete; the first compilation error is:
Code:
bamba1.c:7: error: 'node' undeclared (first use in this function) |
Add a '\n' at the end of the printf or (better?) force a flush of stdout.
I suspect there to be a crash in your deallocate() and therefore stdout does not get flushed and hence no output; might be wrong though. |
if you want to see the complete source, see last post here: http://www.linuxquestions.org/questi...-c-4175417104/, probably up to date.
here is a small discussion about fflush: http://cboard.cprogramming.com/c-pro...sh-stdout.html |
So it's indeed a crash in which case the problem is solved and the thread can be marked as such :)
|
All times are GMT -5. The time now is 08:15 PM. |