-
Notifications
You must be signed in to change notification settings - Fork 1
/
std.h
46 lines (37 loc) · 912 Bytes
/
std.h
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
39
40
41
42
43
44
45
46
#ifndef HEADER__STDH
#define HEADER__STDH
#ifndef OVERRIDE_STD
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#define assert0 assert
#endif
#ifdef OVERRIDE_STD
#ifdef __STDC__
#define size_t2 unsigned long
#endif
#ifndef __STDC__
#define size_t2 int
#endif
void assert();
_Noreturn void assert0(int i);
void *calloc(size_t2 nmemb, size_t2 size);
void *realloc(void *ptr, size_t2 size);
_Noreturn void exit(int status);
size_t2 strlen(const char *s);
int strcmp(const char *s1, const char *s2);
char *strcpy(char *s1, const char *s2);
char *strcat(char *s1, const char *s2);
char *strchr(const char *s, int c);
int strncmp(const char *s1, const char *s2, size_t2 n);
char *strndup(const char *str, size_t2 size);
#ifdef __STDC__
#undef va_start
#undef va_end
#endif
#define va_start __builtin_va_start
#define va_end __builtin_va_end
#define EXIT_FAILURE 1
#endif
#endif