sprintf, sscanf, strlen
int sprintf(char *s, const char *format,…);int sscanf(const char *s, const char *format, …); string versions of the functions printf() and scanf(). Example:char str1[] = “1 2 3 go”, str2[100], tmp[100];int a,b,c,;sscanf(str1,”%d%d%d%s”, &a, &b, &c, tmp);sprintf(str2,“%s %s %d %d %d\n”,tmp, tmp, a ,b, c);printf(“%s”,str2);
String Length: strlen(s) returns length of s:size_t strlen(char const *s);/* const here means that s cannot be changed from within strlen */(size_t is defined in /usr/include/stddef.h as unsigned int - caution !!!)