solution.c (292B)
1 void expand(s, t) 2 char s[], t[]; 3 { 4 for(; *s; s++) { 5 switch (*s) { 6 case '\t': 7 *t++ = '\\'; 8 *t++ = 't'; 9 break; 10 case '\n': 11 *t++ = '\\'; 12 *t++ = 'n'; 13 break; 14 default: 15 *t++ = *s; 16 break; 17 } 18 } 19 *t = '\0'; 20 }