File: libhdr.h

package info (click to toggle)
loki 2.4.7.4-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,172 kB
  • sloc: ansic: 38,653; yacc: 4,974; lex: 946; makefile: 333; sh: 100
file content (33 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _LIBHDR_H_
#define _LIBHDR_H_

#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif

#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif

extern int child_open(const int,const char *,const char *);
extern int child_open1(const int,const char *,const char *,const char *);
#ifndef HAVE_POPEN
FILE *popen(const char *,const char *);
#endif
extern int getseed(const char *,const int);
int writeseed(const char *,const int);
int dumpseed(FILE *,const int);
int mkbackup(const char *,int);
int bindumpseed(FILE *);
int binreadseed(FILE *,char *);
char *my_strsep(char **,const char *);

extern double cumchic(double,int);
extern double cumchn(double,int,double);
extern double critchi(double,int);
extern double critchn(double,int,double);

#define cumchi(x,df) (1.0-cumchic(x,df))
#define cnorm(x) (.5*(1+erf(x/sqrt(2.0))))

#endif