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