aboutsummaryrefslogtreecommitdiffhomepage
path: root/std.h
diff options
context:
space:
mode:
Diffstat (limited to 'std.h')
-rw-r--r--std.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/std.h b/std.h
new file mode 100644
index 0000000..23a2e9a
--- /dev/null
+++ b/std.h
@@ -0,0 +1,31 @@
+typedef long size_t;
+
+struct FILE;
+typedef struct FILE FILE;
+
+extern FILE* stdin;
+extern FILE* stdout;
+extern FILE* stderr;
+
+int atoi(const char*);
+void* calloc(size_t, size_t);
+void exit(int);
+int fclose(FILE*);
+int fprintf(FILE*, const char*, ...);
+char* fgets(char*, int, FILE*);
+FILE* fopen(const char*, const char*);
+int getchar(void);
+int isalnum(int);
+int isalpha(int);
+int isdigit(int);
+int isspace(int);
+void* memcpy(void*, void*, size_t);
+void* memmove(void*, void*, size_t);
+int printf(const char*, ...);
+int sprintf(char*, const char*, ...);
+int strcmp(const char*, const char*);
+size_t strlen(const char*);
+int strncmp(const char*, const char*, size_t);
+char* strstr(const char*, const char*);
+
+#define NULL 0