src/liflines/error.c
/*===============================
 * vcrashlog -- Send crash info to crash log and screen
 *  internal implementation
 *=============================*/
- Send crash info to crash log and screen
internal implementation
- Send crash info to crash log and screen internal implementation
static void
vcrashlog (int newline, const char * fmt, va_list args)
{
	char buffer[2048];
	vsnprintf(buffer, sizeof(buffer), fmt, args);
	buffer[sizeof(buffer)-1] = 0;
	if (newline) {
		buffer[sizeof(buffer)-2] = 0;
		strcat(buffer, "\n");
	}
	errlog_out(NULL, buffer, NULL, -1);
	llwprintf("%s", buffer);
}
static void vcrashlog ( int newline , const char * fmt , va_list args ) { char buffer [ 2048 ] ; vsnprintf ( buffer , sizeof ( buffer ) , fmt , args ) ; buffer [ sizeof ( buffer ) - 1 ] = 0 ; if ( newline ) { buffer [ sizeof ( buffer ) - 2 ] = 0 ; strcat ( buffer , " \n " ) ; } errlog_out ( NULL , buffer , NULL , -1 ) ; llwprintf ( " " , buffer ) ; }
vcrashlog -- Send crash info to crash log and screen
  internal implementation
vcrashlog -- Send crash info to crash log and screen internal implementation
/* ensure room at end to append \n */ /* send to error log if one is specified */ /* send to screen */