see-programming is a popular blog that provides information on C programming basics, data structure, advanced unix programming, network programming, basic linux commands, interview question for freshers, video tutorials and essential softwares for students.
Friday, 27 April 2012
sprintf example in C
int sprintf(char *str, const char *format, ...);
Performs formatted output conversion and writes the output to str. It gives us the number of characters written into the output string (excludes '\0') as return value.