C examples for String:String Function
reverses the contents of string str.
void reverse(char str[]) { int ch, j, k; for(j = 0, k = strlen(str) - 1; j < k; j++, k--){ ch = str[j]; str[j] = str[k]; str[k] = ch; } }