1: /*
   2: **  STRING MOVE
   3: **
   4: **	The string `a' is moved to the string `b'.  The length
   5: **	of the string is returned.  `a' must be null terminated.
   6: **	There is no test for overflow of `b'.
   7: */
   8: 
   9: smove(a, b)
  10: char    *a, *b;
  11: {
  12:     register int    l;
  13:     register char   *p, *q;
  14: 
  15:     p = a;
  16:     q = b;
  17:     l = 0;
  18:     while (*p)
  19:     {
  20:         *q++ = *p++;
  21:         l++;
  22:     }
  23:     *q = '\0';
  24:     return (l);
  25: }
Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2041
Valid CSS Valid XHTML 1.0 Strict