Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!tramp!hartkopf From: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Newsgroups: comp.lang.c Subject: using variable number arguments (of type char *) Message-ID: <12233@boulder.Colorado.EDU> Date: 29 Sep 89 23:01:20 GMT Sender: news@boulder.Colorado.EDU Reply-To: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Organization: University of Colorado, Boulder Lines: 18 I want to write a (ANSI C) function that will concatenate any number of character strings, leaving all original strings as they were, and returning the resulting string. So somthing like: char *concat(char *s, ...) My problem is that I can't figure out how to manipulate these variable number of arguments from the example in K&R 2nd edition. Also, would I need to pass some space large enough to hold the final concatenated string? Thanks a lot for any suggestions/code/etc. Jeff Hartkopf Internet: hartkopf@tramp.Colorado.EDU