delorie.com/archives/browse.cgi | search |
> Date: Wed, 30 Aug 2000 16:36:35 +0200 > From: Laurynas Biveinis <lauras AT softhome DOT net> > > > +/* bail(): Print MSG to stderr and quit */ > > +static void bail(const char *msg) > > +{ > > + assert(msg); > > + > > + fprintf(stderr, "SYMIFY ERROR: %s\n", msg); > > + exit(EXIT_FAILURE); > > +} > > Maybe this function could be improved by adding perror() call > if errno != 0? It's probably better to use strerror, since you already have an fprintf. But I agree that a more specific error message is a good idea.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |