1: # include   <sccs.h>
   2: 
   3: SCCSID(@(#)smove.c	8.1	12/31/84)
   4: 
   5: /*
   6: **  STRING MOVE
   7: **
   8: **	The string `a' is moved to the string `b'.  The length
   9: **	of the string is returned.  `a' must be null terminated.
  10: **	There is no test for overflow of `b'.
  11: */
  12: 
  13: smove(a, b)
  14: register char   *a, *b;
  15: {
  16:     register int    l;
  17: 
  18:     l = 0;
  19:     while (*a != '\0')
  20:     {
  21:         *b++ = *a++;
  22:         l++;
  23:     }
  24:     *b = '\0';
  25:     return (l);
  26: }

Defined functions

smove defined in line 3; never used
Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 446
Valid CSS Valid XHTML 1.0 Strict