aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/espresso/stdlib.h
blob: c5cf47974ba3edecb437105ec825e840d20aa6b4 (plain)
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
34
35
36
37
38
/* ANSI Compatible stdlib.h stub */

#ifndef __cplusplus

#include <sys/types.h>

#ifndef ultrix4
extern double atof(const char *);
extern int atoi(const char *);
extern long atol(const char *);
extern void abort(void);
extern void *calloc(size_t, size_t);
extern void exit(int);
extern void free(void *);
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern char *getenv(const char *);
#else
extern double atof(const char *);
extern int atoi(char *);
extern long atol(char *);
extern void abort(void);
extern void *calloc(size_t, size_t);
extern void exit(int);
extern void free(void *);
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern char *getenv(char *);
#endif

/* should be in stdio.h */
extern void perror(const char *);

#ifdef LINT
#undef putc
#endif

#endif