1 void bad (void); foo(char * src,char ** last)2char *foo (char *src, char **last) 3 { 4 char *dst; 5 int ch; 6 dst = src = (src ? src : *last); 7 8 if (*src == 0) 9 return 0; 10 11 while (src[0]) 12 { 13 if (!src[1]) 14 { 15 bad (); 16 break; 17 } 18 *dst = *src; 19 dst += 1; 20 src += 2; 21 } 22 *last = src; 23 *dst = 0; 24 return *last; 25 } 26