Listing 1 Files for string handling

/* 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 0;
        }

/* 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"
/* End of File */