home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / compat / __warning.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-17  |  433 b   |  25 lines

  1. #include <stdio.h>
  2.  
  3. #ifdef USE_CONSOLE
  4. #define OUT_FILE_PTR    fp
  5. #else
  6. #define    OUT_FILE_PTR    stderr
  7. #endif    /* USE_CONSOLE */
  8.  
  9. void
  10. __libc_warning (const char *name)
  11. {
  12. #if 0
  13. #ifdef USE_CONSOLE
  14.   static FILE *fp = NULL;
  15.  
  16.   if (!fp) fp = fopen ("/dev/console", "w");
  17.   if (!fp) fp = stderr;
  18.   else setbuf (fp, NULL);
  19. #endif    /* USE_CONSOLE */
  20.  
  21.   fprintf (OUT_FILE_PTR,
  22.     "Old version of C library function is used: `%s'.\n", name);
  23. #endif
  24. }
  25.