2021-10-11 18:37:13 -03:00

45 lines
1.3 KiB
C

/*
* Copyright (c) 1986, 1987, 1988, 1989 by Sun Microsystems, Inc.
* Permission to use, copy, modify, and distribute this software for any
* purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both that copyright
* notice and this permission notice are retained, and that the name
* of Sun Microsystems, Inc., not be used in advertising or publicity
* pertaining to this software without specific, written prior permission.
* Sun Microsystems, Inc., makes no representations about the suitability
* of this software or the interface defined in this software for any
* purpose. It is provided "as is" without express or implied warranty.
*/
#ifndef lint
static char sccsid[] = "@(#)errors77.c 1.1 94/10/31 Copyr 1983 Sun Micro";
#endif
/*
* Copyright (c) 1983 by Sun Microsystems, Inc.
*/
#include "f77strings.h"
int print_error();
int report_most_recent_error();
int printerror_(f77string, error, f77strleng)
char *f77string;
int *error, f77strleng;
{
char *sptr;
f77strleng = f77strleng > MAXLEN ? MAXLEN : f77strleng;
sptr = _core_77string;
while (f77strleng--)
*sptr++ = *f77string++;
*sptr = '\0';
return(print_error(_core_77string, *error));
}
int reportrecenterr_(error)
int *error;
{
return(report_most_recent_error(error));
}