1: /*
   2: **  IIconcatv -- concatenate strings into a buffer.
   3: **
   4: **	Parameters:
   5: **		buf -- result buffer
   6: **		args -- first of a 0 terminated series of string pointers.
   7: **
   8: **	Returns:
   9: **		a pointer to the null byte appended.
  10: **
  11: */
  12: 
  13: 
  14: char    *IIconcatv(buf, args)
  15: char        *buf;
  16: char        *args;
  17: {
  18:     register char   *p;
  19:     register char   **i;
  20:     register char   *s;
  21: 
  22:     i = &args;
  23:     p = buf;
  24:     while (s = *i++)
  25:     {
  26:         /* move the current arg over */
  27:         while (*p = *s++)
  28:             p++;
  29:     }
  30:     *p = '\0';
  31: 
  32:     return (p);
  33: }

Defined functions

IIconcatv defined in line 14; used 4 times
Last modified: 1995-02-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1586
Valid CSS Valid XHTML 1.0 Strict