home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8712 / mkmf / 2 / src / warn.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-13  |  404 b   |  23 lines

  1. /* $Header: warn.c,v 1.2 85/03/25 12:36:56 nicklin Exp $ */
  2.  
  3. /*
  4.  * Author: Peter J. Nicklin
  5.  */
  6.  
  7. /*
  8.  * warn() places an error message on the standard error output stream
  9.  * stderr.
  10.  */
  11. #include <stdio.h>
  12. #include "null.h"
  13.  
  14. extern char *PGN;            /* program name */
  15.  
  16. warn(m)
  17.     char *m;            /* warning message */
  18. {
  19.     if (PGN != NULL && *PGN != '\0')
  20.         fprintf(stderr, "%s: ", PGN);
  21.     fprintf(stderr, "%s\n", m);
  22. }
  23.