6 typedef struct DIR DIR;
8 extern void *(*malloc
)(size_t size
);
9 extern void (*free
)(void *ptr
);
10 extern void *(*calloc
)(size_t num
, size_t size
);
11 extern void *(*realloc
)(void* ptr
, size_t size
);
12 extern void *(*memset
)(void *destination
, int value
, size_t num
);
13 extern void *(*memcpy
)(void *destination
, const void *source
, size_t num
);
14 extern char *(*strcpy
)(char *destination
, const char *source
);
15 extern char *(*strncpy
)(char *destination
, const char *source
, size_t num
);
16 extern char *(*strcat
)(char *dest
, const char *src
);
17 extern char *(*strncat
)(char *dest
, const char *src
, size_t n
);
18 extern size_t (*strlen
)(const char *s
);
19 extern int (*strcmp
)(const char *s1
, const char *s2
);
20 extern int (*strncmp
)(const char *s1
, const char *s2
, size_t n
);
21 extern int (*sprintf
)(char *str
, const char *format
, ...);
22 extern int (*snprintf
)(char *str
, size_t size
, const char *format
, ...);
23 extern int (*sscanf
)(const char *str
, const char *format
, ...);
24 extern char *(*strchr
)(const char *s
, int c
);
25 extern char *(*strrchr
)(const char *s
, int c
);
27 extern void (*srand
)(unsigned int seed
);
28 extern int (*rand
)(void);
30 extern char *(*asctime
)(const struct tm
*tm
);
31 extern char *(*asctime_r
)(const struct tm
*tm
, char *buf
);
32 extern char *(*ctime
)(const time_t *timep
);
33 extern char *(*ctime_r
)(const time_t *timep
, char *buf
);
34 extern struct tm
*(*gmtime
)(const time_t *timep
);
35 extern struct tm
*(*gmtime_r
)(const time_t *timep
, struct tm
*result
);
36 extern struct tm
*(*localtime
)(const time_t *timep
);
37 extern struct tm
*(*localtime_r
)(const time_t *timep
, struct tm
*result
);
38 extern time_t (*mktime
)(struct tm
*tm
);
40 extern DIR *(*opendir
)(const char *filename
);
41 extern struct dirent
*(*readdir
)(DIR *dirp
);
42 extern int (*readdir_r
)(DIR *dirp
, struct dirent
*entry
, struct dirent
**result
);
43 extern long (*telldir
)(const DIR *dirp
);
44 extern void (*seekdir
)(DIR *dirp
, long loc
);
45 extern void (*rewinddir
)(DIR *dirp
);
46 extern int (*closedir
)(DIR *dirp
);
47 extern int (*dirfd
)(DIR *dirp
);