char* buffer = new char[messageLengthInBytes + 1];  if (buffer != NULL) { memcpy(buffer, message, messageLengthInBytes); buffer[messageLengthInBytes] = '\0'; if (messageLengthInBytes == 1) { printf(buffer); } else { printf("<Java Console System.err>: %s", buffer); } }
if (theConsole != NULL) theConsole->write(message, messageLengthInBytes); else debug_out("\pSystem.err:", message, messageLengthInBytes);
static void java_stderr(JMSessionRef session, const void *message, SInt32 messageLengthInBytes){	// if (theConsole != NULL)	//	theConsole->write(message, messageLengthInBytes);	/* else		debug_out("\pSystem.err:", message, messageLengthInBytes); */	// Added by Mark Lin (mark.lin@eng.sun.com):	char* buffer = new char[messageLengthInBytes + 1];		if (buffer != NULL) {		memcpy(buffer, message, messageLengthInBytes);		buffer[messageLengthInBytes] = '\0';		if (messageLengthInBytes == 1) {			printf(buffer);		} else {			printf("<Java Console System.err>: %s", buffer);		}	}}