|
|
1.1 root 1: # include <sccs.h>
2:
3: SCCSID(@(#)IIconcatv.c 8.1 12/31/84)
4:
5:
6: /*
7: ** IIconcatv -- concatenate strings into a buffer.
8: **
9: ** Parameters:
10: ** buf -- result buffer
11: ** args -- first of a 0 terminated series of string pointers.
12: **
13: ** Returns:
14: ** a pointer to the null byte appended.
15: **
16: */
17:
18:
19: char *IIconcatv(buf, args)
20: char *buf;
21: char *args;
22: {
23: register char *p;
24: register char **i;
25: register char *s;
26:
27: i = &args;
28: p = buf;
29: while (s = *i++)
30: {
31: /* move the current arg over */
32: while (*p = *s++)
33: p++;
34: }
35: *p = '\0';
36:
37: return (p);
38: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.