Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdahl!netcom!aed From: aed@netcom.COM (Andrew Davidson) Newsgroups: comp.lang.c Subject: trouble with macro`s Message-ID: <27489@netcom.COM> Date: 9 Mar 91 00:35:43 GMT Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 29 Hi I am having trouble with my preprcessor. I am trying to write a macro that just concates its argument. ie #define name2(a,b) ???????? the call name2(Andy,Davidson) should produce AndyDavidson. I belive that ansi preprocessors are supposed to support this as follows #define name2(a,b) a##b unfortuanly I am using a k&r compiler (I am working on a sun work station and can not change compilers) Anyone familar with C++ will noticed that the name2 macro is defined in generic.h thanks in advance -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig Andy Davidson Woodside CA. aed@netcom.COM -----------------------------------------------------------------