You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
703 B
41 lines
703 B
/**********
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
Author: 1985 Thomas L. Quarles
|
|
**********/
|
|
|
|
/*
|
|
* provide the error message appropriate for the given error code
|
|
*/
|
|
|
|
#include "ngspice.h"
|
|
#include <stdio.h>
|
|
#include "fteext.h"
|
|
#include "ifsim.h"
|
|
#include "iferrmsg.h"
|
|
#include "sperror.h"
|
|
#include "inp.h"
|
|
|
|
char *
|
|
INPerror(int type)
|
|
{
|
|
char *val;
|
|
char ebuf[513];
|
|
|
|
val = SPerror(type);
|
|
|
|
if (!val)
|
|
return(val);
|
|
|
|
if(errRtn)
|
|
sprintf(ebuf, "%s detected in routine \"%s\"\n", val, errRtn);
|
|
else
|
|
sprintf(ebuf, "%s\n", val);
|
|
|
|
FREE(val);
|
|
val = MALLOC(strlen(ebuf) + 1);
|
|
if (val)
|
|
strcpy(val, ebuf);
|
|
|
|
return(val);
|
|
}
|
|
|