#include "spice.h"
#include "misc.h"
Go to the source code of this file.
#define TEMPFORMAT "temp%s%d" |
int access |
( |
char * |
pth, |
|
|
int |
m |
|
) |
| |
void clearerr |
( |
FILE * |
fp | ) |
|
Definition at line 253 of file libfuncs.c.
262 t = 1.0/(1.0 + 0.5*x);
263 ans = t*exp(-z*z-1.26551223+t*(1.00002368+t*(0.37409196+t*(0.09678418+
264 t*(-0.18628806+t*(0.27886807+t*(-1.13520398+t*(1.48851587+
265 t*(-0.82215223+t*0.17087277)))))))));
266 return (x >= 0 ? ans : 2.0 - ans);
char* getcwd |
( |
char * |
buf, |
|
|
int |
size |
|
) |
| |
Definition at line 124 of file libfuncs.c.
static char buf[MAXPROMPT]
void perror |
( |
char * |
str | ) |
|
Definition at line 59 of file libfuncs.c.
63 char *
m =
"error occurred\n";
65 (void)fprintf(stderr,
"%s: %s",str,m);
67 (
void)fprintf(stderr,
"%s",m);
FILE* popen |
( |
char * |
cmd, |
|
|
char * |
mode |
|
) |
| const |
Definition at line 20 of file libfuncs.c.
28 fp = fopen(
tfile,
"w");
30 (void)sprintf(buf,
"%s > %s",cmd,
tfile);
33 fp = fopen(
tfile,
"r");
static char buf[MAXPROMPT]
char* smktemp |
( |
char * |
id | ) |
|
Definition at line 85 of file libfuncs.c.
88 fprintf(stderr,
"Can not execute: %s\n",str);