Archives - Posts tagged as 'fprintf'
simple callback functionOctober 11th / 3 Comments »
Callback function is hard to trace, but sometimes it is very useful. Especially when you are designing libraries. Callback function is like asking your user ... Continue
fprintf to print text on standard output screen, why?January 24th / No Comments »
We can actually do this to print text on screen, fprintf(stdout,"Hello %s\n","World"); But why? Try to imagine that you are doing a debug log file function, which ... Continue
writing log files or config files uses fprintfJanuary 23rd / 1 Comment »
To write formatted string to files, the easiest way is uses fprintf. It works exactly the same way like printf. File * fp=fopen("filename","w"); fprintf(fp,"%s.%s = %d\n", ... Continue
