1: /* 2: * "@(#)s_copy.c 1.1" 3: */ 4: 5: s_copy(a, b, la, lb) /* assign strings: a = b */ 6: char *a, *b; 7: long int la, lb; 8: { 9: char *aend, *bend; 10: 11: aend = a + la; 12: 13: if(la <= lb) 14: while(a < aend) 15: *a++ = *b++; 16: 17: else 18: { 19: bend = b + lb; 20: while(b < bend) 21: *a++ = *b++; 22: while(a < aend) 23: *a++ = ' '; 24: } 25: }