File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind4-9b.py
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

...

/*    ERRORS */

#include <varargs.h>


/* VARARGS2 */

void	adios (what, fmt, va_alist)
char   *what,
       *fmt;
va_dcl
{
    advise (what, fmt, va_alist);

    _exit (1);
}


/* VARARGS2 */

void	advise (what, fmt, va_alist)
char   *what,
       *fmt;
va_dcl
{
    char    buffer[BUFSIZ];

    asprintf (buffer, what, fmt, va_alist);

    (void) fflush (stdout);

    fprintf (stderr, "%s: ", myname);
    (void) fputs (buffer, stderr);
    (void) fputc ('\n', stderr);

    (void) fflush (stderr);
}

%}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.