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: }

Defined functions

s_copy defined in line 5; used 1 times
Last modified: 1983-05-20
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 278
Valid CSS Valid XHTML 1.0 Strict