char* str_nz (char *s) { int i = 0, j = strlen(s) - 1; char temp; for(;;) { temp = s[i]; s[i] = s[j]; s[j] = temp; if(i >= j) return s; } }