ftp.nice.ch/pub/next/unix/audio/cmix.s.tar.gz#/cmix/sys/merror.c

This is merror.c in view mode; [Download] [Up]

/*
 *	merror.c: text of mix error messages
 */

#include	"mixerr.h"

int	mixerr;
char	*mix_errlist[] = {
	"Error 0",
	"This name already defined",
	"No subroutine by that name",
	"No more memory",
	0
};

merror(s)
char *s;
{
	register char *c;
	register n;

	c = "Unknown error";
	if (mixerr < MX_NERR)
		c = mix_errlist[mixerr];
	n = strlen(s);
	if(n) {
		write(2, s, n);
		write(2, ": ", 2);
	}
	write(2, c, strlen(c));
	write(2, "\n", 1);
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.