what is sprintf in c
If successful, it returns the total number of characters written excluding null-character appended in the string, in case of failure a negative number is returned .
Source: www.geeksforgeeks.org
what is sprintf in c
int sprintf(char *str, const char *string,...);
Source: www.geeksforgeeks.org