delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/27/19:26:16

From: noname AT noname DOT org (Stuart Hall)
Newsgroups: comp.os.msdos.djgpp,alt.comp.lang.learn.c-c++
Subject: Re: Problem implementing multiple moduled program
Date: Wed, 27 Jan 1999 21:06:37 GMT
Organization: Connix - The Connecticut Internet Exchange
Lines: 25
Message-ID: <36b17fa7.28064355@news>
References: <36b41be7 DOT 2525182 AT news> <36AE2EF6 DOT 3AC3 AT seidata DOT com> <36b05fef DOT 19943524 AT news> <36AF6665 DOT D826F381 AT geocities DOT com>
NNTP-Posting-Host: m5.aetna.com
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.452
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

It worked perfectly.  Thanks for the suggestion Sahab!!  :-)



On Wed, 27 Jan 1999 14:17:57 -0500, Sahab Yazdani
<sahaby AT geocities DOT com> so kindly spent valuable time writing:

>OK Stuart, I make it a good practice to give each header file a unique
>name using #define, the reason being that if 2 modules need to use the
>same header file they'll get tangled up at link time.  So:
>
>#ifndef GETSAFE_LIB
>#define GETSAFE_LIB
>
>char *getsafe(char *buffer, int count);
>
>#endif
>
>In my opinion would be better
>

----
Stuart Hall
Connecticut, USA
* return address:  f p r i n t @ i n a m e . c o m *

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019