11 fp = fopen(
"my_log.txt",
"w+t");
16 vfprintf(
fp, fmt, ap);
24 void * memalign(
size_t align,
size_t sz)
28 void *p = malloc(sz + align + 1);
29 size_t d = (
unsigned long)p % align;
32 p = (
char *)p + align - d;
41 return _wfopen(fname, L
"r+b");
43 return fopen(fname,
"r+b");
50 return _wfopen(fname, L
"w+b");
52 return fopen(fname,
"w+b");
59 return _wfopen(fname, mode);
61 return fopen(fname, mode);
68 return _wfopen(fname, mode);
70 return fopen(fname, mode);
77 return wcscpy(dest, src);
79 return strcpy(dest, src);
86 return wcscat(dest, src);
88 return strcat(dest, src);
95 return wcscmp(str1, str2);
97 return strcmp(str1, str2);
void file_log(const char *fmt,...)
FILE * file_write_open(const WChar *fname)
FILE * file_read_open(const WChar *fname)
int string_cmp(const WChar *str1, const WChar *str2)
WChar * string_cat(WChar *dest, const WChar *src)
WChar * string_cpy(WChar *dest, const WChar *src)