CompuServe Messages

Help!!!

    18-Apr-93 11:16:25
Sb: #34290-Help!!!
Fm: Doug Walker 71165,2274
To: verjus 70764,1332
Another way of getting stdprn: #include <stdio.h> FILE *stdprn; void init_stdprn(void) { stdprn = fopen("PRT:", "w"); } Just put the above in your program somewhere, then call init_stdprn from your main() routine (or anywhere else BEFORE you use stdprn, but AFTER stdio is initialized.) You could modify the source code to _main as provided in SC:SOURCE/_main.c to initialize stdprn as well. Then you'll need to declare stdprn in each module that uses it: extern FILE *stdprn; and everything should work OK. –Doug