home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / LIB / SLIBINIT.C < prev    next >
C/C++ Source or Header  |  1996-01-05  |  692b  |  36 lines

  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <io.h>
  6. #include <sys\stat.h>
  7. #include <assert.h>
  8.  
  9. #include "lib.h"
  10.  
  11. /*    _slibinit.c    */
  12. extern    void    _LibraryInit( void );
  13.  
  14. #if    defined( _OWLPCH )
  15. #include "message.h"
  16. static    void    *funcary[] = {
  17.     wprintf, exit, getenv, malloc, free,
  18.     fopen, fclose, fprintf, fgetc, sprintf, access, stat, fread, fwrite, fgets
  19. };
  20. #else
  21. static    void    *funcary[] = {
  22.     printf, exit, getenv, malloc, free,
  23.     fopen, fclose, fprintf, fgetc, sprintf, access, stat, fread, fwrite, fgets
  24. };
  25. #endif
  26.  
  27. /*Library    **LibAry ;*/
  28.  
  29. int        (**SystemFunc)() = (int(**)())funcary ;
  30.  
  31. int        LibraryInit()
  32. {
  33.     _LibraryInit();
  34.     return 0 ;
  35. }
  36.