home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_04
/
1104102a
< prev
next >
Wrap
Text File
|
1993-01-30
|
492b
|
27 lines
/* file STRDEF.H */
defstr ( InitStr, "Init String" )
defstr ( OtherStr, "Other String")
/* file STRDEMO. C */
#include "strhndl.h"
#include <stdio.h>
int main ()
{
puts(InitStr);
puts(OtherStr);
return O;
}
/* file STRHNDL.H */
#define defstr (x,y) extern char x[];
#include "strdef.h"
/* file STRHNDL.C */
#define defstr(x,y) char x[] = y;
#include "strdef.h"