1 #include <stdio.h> 2 #include <string.h> 3 4 char *strconv(char *p) 5 { 6 int length = strlen(p) ; 7 char *ptr = p ; 8 char *ptr_1 = p+length - 1; 9 while(ptr < ptr_1) 10 { 11 char c = *ptr ; 12 *ptr = *ptr_1 ; 13 *ptr_1 = c ; 14 ++ptr ; 15 --ptr_1 ; 16 } 17 return p ; 18 } 19 20 int main(void) 21 { 22 char str[]="abcdef1234" ; 23 char *p; 24 p = strconv(str); 25 printf("%s",p); 26 return 1; 27 }