Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!dkuug!iesd!iesd.auc.dk!fischer From: fischer@iesd.auc.dk (Lars P. Fischer) Newsgroups: comp.lang.c Subject: Re: ANSI CPP string concatenation Message-ID: Date: 20 Jun 91 21:17:33 GMT References: <1271@cnw01.storesys.coles.oz.au> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 19 In-reply-to: nigel@cnw01.storesys.coles.oz.au's message of 19 Jun 91 06:01:11 GMT >>>>> On 19 Jun 91, nigel@cnw01.storesys.coles.oz.au (Nigel Harwood) said: Nigel> Does anyone know if you can append strings in ANSI C. "The preprocessor operator ## provides a way to concatenate actual arguments during macro expansion. [...] #define paste(front, back) front ## back" - Kernighan & Ritchie: The C Programming Language, 2.ed, p.90 Found by looking up "concatenate" in the index. RTFM. /Lars -- Lars Fischer, fischer@iesd.auc.dk | It takes an uncommon mind to think of CS Dept., Univ. of Aalborg, DENMARK. | these things. -- Calvin