-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,554 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* String functions */ | ||
|
||
#ifndef _STDDEF | ||
typedef int ptrdiff_t; /* result type of pointer difference */ | ||
typedef unsigned size_t; /* type yielded by sizeof */ | ||
#define _STDDEF | ||
#define offsetof(ty, mem) ((int)&(((ty *)0)->mem)) | ||
#endif _STDDEF | ||
|
||
#ifndef NULL | ||
#define NULL ((void *)0) | ||
#endif NULL | ||
|
||
extern int errno; /* system error number */ | ||
|
||
extern void *memcpy(void *, void *, size_t); | ||
extern void *memmove(void *, void *, size_t); | ||
extern char *strcpy(char *, char *); | ||
extern char *strncpy(char *, char *, size_t); | ||
extern char *strcat(char *, char *); | ||
extern char *strncat(char *, char *, size_t); | ||
extern int memcmp(void *, void *, size_t); | ||
extern int strcmp(char *, char *); | ||
extern int strcasecmp(char *, char *); | ||
extern int strncmp(char *, char *, size_t); | ||
extern int strnicmp(char *, char *, size_t); | ||
#define strncasecmp strnicmp | ||
extern size_t strcoll(char *, size_t, char *); | ||
extern void *memchr(void *, int, size_t); | ||
extern size_t strcspn(char *, char *); | ||
extern char *strpbrk(char *, char *); | ||
extern size_t strspn(char *, char *); | ||
extern char *strstr(char *, char *); | ||
extern char *strtok(char *, char *); | ||
extern void *memset(void *, int, size_t); | ||
extern char *strerror(int); | ||
extern size_t strlen(char *); | ||
extern char *strchr(char *, int); | ||
extern char *strrchr(char *, int); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef _TIME | ||
|
||
typedef long time_t; /* for representing times in seconds */ | ||
struct tm { | ||
int tm_sec; | ||
int tm_min; | ||
int tm_hour; | ||
int tm_mday; | ||
int tm_mon; | ||
int tm_year; | ||
int tm_wday; | ||
int tm_yday; | ||
int tm_isdst; | ||
}; | ||
#define _TIME | ||
#endif _TIME | ||
|
||
extern int time_zone; /* minutes WESTWARD of Greenwich */ | ||
/* this value defaults to 0 since with | ||
operating systems like MS-DOS there is | ||
no time zone information available */ | ||
|
||
extern time_t time(time_t *); /* seconds since 00:00:00 Jan 1 1970 */ | ||
extern char * asctime(struct tm *); /* converts struct tm to ascii time */ | ||
extern char * ctime(); /* current local time in ascii form */ | ||
extern struct tm * gmtime(); /* Universal time */ | ||
extern struct tm * localtime(); /* local time */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.