Rev 7880 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7880 | Rev 7894 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | //------------------------------------------------------------- |
4 | //------------------------------------------------------------- |
5 | #include "stddef.h" |
5 | #include "stddef.h" |
6 | #include |
6 | #include |
7 | #include "msvcrt.dll.h" |
7 | #include "msvcrt.dll.h" |
Line -... | Line 8... | ||
- | 8 | ||
- | 9 | #include "string.h" |
|
- | 10 | #include "conio.h" |
|
- | 11 | #include "stdio.h" |
|
- | 12 | #include "stdlib.h" |
|
- | 13 | #include "time.h" |
|
8 | 14 | ||
9 | #include "string.c" |
- | |
10 | //#include "dlfcn.c" |
15 | #include "string.c" |
11 | #include "conio.c" |
16 | #include "conio.c" |
12 | #include "stdio.c" |
17 | #include "stdio.c" |
13 | #include "stdlib.c" |
- | |
14 | - | ||
15 | #include "time.h" |
18 | #include "stdlib.c" |
Line -... | Line 19... | ||
- | 19 | #include "time.c" |
|
Line 16... | Line 20... | ||
16 | #include "time.c" |
20 | |
17 | 21 | // note: by default all function in c are cdecl :D |
|
18 | 22 | ||
19 | typedef struct |
23 | typedef struct |
Line 28... | Line 32... | ||
28 | 32 | ||
29 | // stdio |
33 | // stdio |
30 | const char sz_printf[] = "printf"; |
34 | const char sz_printf[] = "printf"; |
31 | const char sz_puts[] = "puts"; |
35 | const char sz_puts[] = "puts"; |
- | 36 | const char sz_gets[] = "gets"; |
|
Line 32... | Line 37... | ||
32 | const char sz_gets[] = "gets"; |
37 | const char sz_putchar[] = "putchar"; |
33 | 38 | ||
34 | //string |
39 | //string |
35 | const char sz_strlen[] = "strlen"; |
40 | const char sz_strlen[] = "strlen"; |
- | 41 | const char sz_strcmp[] = "strcmp"; |
|
- | 42 | const char sz_strcat[] = "strcat"; |
|
- | 43 | const char sz_strchr[] = "strchr"; |
|
- | 44 | const char sz_strrchr[] = "strrchr"; |
|
- | 45 | const char sz_strcpy[] = "strcpy"; |
|
- | 46 | const char sz_strncpy[] = "strncpy"; |
|
- | 47 | const char sz_memset[] = "memset"; |
|
Line 36... | Line 48... | ||
36 | const char sz_strcmp[] = "strcmp"; |
48 | const char sz_memcpy[] = "memcpy"; |
- | 49 | const char sz_memcmp[] = "memcmp"; |
|
- | 50 | ||
37 | const char sz_strcat[] = "strcat"; |
51 | // stdlib |
38 | 52 | const char sz_srand[] = "srand"; |
|
39 | // stdlib |
53 | const char sz_rand[] = "rand"; |
40 | const char sz_malloc[] = "malloc"; |
54 | const char sz_malloc[] = "malloc"; |
Line 41... | Line 55... | ||
41 | const char sz_free[] = "free"; |
55 | const char sz_free[] = "free"; |
42 | const char sz_realloc[] = "realloc"; |
56 | const char sz_realloc[] = "realloc"; |
- | 57 | //const char sz_[] = ""; |
|
- | 58 | ||
- | 59 | // time |
|
Line 43... | Line 60... | ||
43 | //const char sz_[] = ""; |
60 | const char sz_time[] = "time"; |
44 | 61 | const char sz_mktime[] = "mktime"; |
|
45 | // time |
62 | const char sz_localtime[] = "localtime"; |
Line 53... | Line 70... | ||
53 | {sz__kbhit, (void*)_kbhit}, |
70 | {sz__kbhit, (void*)_kbhit}, |
Line 54... | Line 71... | ||
54 | 71 | ||
55 | {sz_printf, (void*)printf}, |
72 | {sz_printf, (void*)printf}, |
56 | {sz_puts, (void*)puts}, |
73 | {sz_puts, (void*)puts}, |
- | 74 | {sz_gets, (void*)gets}, |
|
Line 57... | Line 75... | ||
57 | {sz_gets, (void*)gets}, |
75 | {sz_putchar, (void*)putchar}, |
58 | 76 | ||
59 | {sz_strlen, (void*)strlen}, |
77 | {sz_strlen, (void*)strlen}, |
- | 78 | {sz_strcmp, (void*)strcmp}, |
|
- | 79 | {sz_strcat, (void*)strcat}, |
|
- | 80 | {sz_strchr, (void*)strchr}, |
|
- | 81 | {sz_strrchr, (void*)strrchr}, |
|
- | 82 | {sz_strcpy, (void*)strcpy}, |
|
- | 83 | {sz_strncpy, (void*)strncpy}, |
|
- | 84 | {sz_memset, (void*)memset}, |
|
Line -... | Line 85... | ||
- | 85 | {sz_memcpy, (void*)memcpy}, |
|
- | 86 | {sz_memcmp, (void*)memcmp}, |
|
60 | {sz_strcmp, (void*)strcmp}, |
87 | |
61 | {sz_strcat, (void*)strcat}, |
88 | {sz_srand, (void*)srand}, |
62 | 89 | {sz_rand, (void*)rand}, |
|
Line 63... | Line 90... | ||
63 | {sz_malloc, (void*)malloc}, |
90 | {sz_malloc, (void*)malloc}, |
- | 91 | {sz_free, (void*)free}, |
|
- | 92 | {sz_realloc, (void*)realloc}, |
|
- | 93 | ||
- | 94 | {sz_time, (void*)time}, |
|
Line 64... | Line 95... | ||
64 | {sz_free, (void*)free}, |
95 | {sz_mktime, (void*)mktime}, |
65 | {sz_realloc, (void*)realloc}, |
96 | {sz_localtime, (void*)localtime}, |