22 const
char *cmd, *mode;
28 fp = fopen(
tfile,
"w");
30 (void)sprintf(buf,
"%s > %s",cmd,
tfile);
33 fp = fopen(
tfile,
"r");
63 char *
m =
"error occurred\n";
65 (void)fprintf(stderr,
"%s: %s",str,m);
67 (
void)fprintf(stderr,
"%s",m);
88 fprintf(stderr,
"Can not execute: %s\n",str);
113 #ifndef HAVE_CLEARERR 154 (void) fcntl(oldd, F_DUPFD, newd);
166 #define TEMPFORMAT "temp%s%d" 188 nbuf = (
char *)
malloc(strlen(rbuf) + 1);
232 double y, z = 1.0, k = 2.0;
240 for (y = 1.0; n; n >>= 1) {
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);
static char buf[MAXPROMPT]
char * getcwd(char *buf, int size)
int access(char *pth, int m)
FILE * popen(char *cmd, char *mode) const