File:  [MW Coherent from dump] / coherent / b / lib / libc / XSTDIO / other / __assertfail.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:36 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * libc/gen/__assertfail.c
 * Assertion failure.
 * Implementation-defined behavior:
 *	message format "<file>: <line>: assert(<msg>) failed.\n".
 */

#include <stdio.h>
#include <stdlib.h>

void
__assertfail(msg, file, line) char *msg; char *file; int line;
{
	fprintf(stderr, "%s: %d: assert(%s) failed.\n", file, line, msg);
	abort();
}

/* end of libc/gen/__assertfail.c */

unix.superglobalmegacorp.com

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