if ( streq(name, "unknownType") ) sprintf(buf, "The `%s' resource is not used by this widget.", info->event->name); else if ( streq(name, "noColormap") ) sprintf(buf, msg, params[0]);
if ( streq(name, "unknownType") ) { char *msg1 = "The `"; char *msg2 = "' resource is not used by this widget."; len = strlen(msg1) + strlen(msg2) + strlen(info->event->name) + 1; if (len > sizeof(buf)) pbuf = XtMalloc(len); else pbuf = buf; if (pbuf == NULL) { pbuf = buf; sprintf(pbuf, "A%s", msg2); } else { sprintf(pbuf, "%s%s%s", msg1, info->event->name, msg2); } } else if ( streq(name, "noColormap") ) { len = strlen(msg) + 1; if (params[0]) len += strlen(params[0]); if (len > sizeof(buf)) pbuf = XtMalloc(len); else pbuf = buf; if (pbuf == NULL) { pbuf = buf; sprintf(pbuf, "Message too long"); } else { sprintf(pbuf, msg, params[0]); } }
HandleToolkitErrors(name, type, class, msg, params, num_params)String name, type, class, msg, *params;Cardinal * num_params;{    SVErrorInfo * info = &globals.error_info;	    char buf[BUFSIZ];    if ( streq(name, "unknownType") ) 	sprintf(buf, "The `%s' resource is not used by this widget.", 		info->event->name);     else if ( streq(name, "noColormap") ) 	sprintf(buf, msg, params[0]);    else if (streq(name, "conversionFailed") || streq(name, "conversionError"))    {	if (streq(info->event->value, XtRString))	    sprintf(buf, 		    "Could not convert the string '%s' for the `%s' resource.",		    info->event->value, info->event->name);   	else	    sprintf(buf, "Could not convert the `%s' resource.",		    info->event->name);    }    else 	sprintf(buf, "Name: %s, Type: %s, Class: %s, Msg: %s",		name, type, class, msg);    /*     * Insert this info into the protocol stream, and update the count.     */     (*(info->count))++;    _XEditResPutWidgetInfo(info->stream, info->entry);    _XEditResPutString8(info->stream, buf);}