diff options
| author | spv <aquaticvegetable@gmail.com> | 2022-04-24 21:30:15 -0400 |
|---|---|---|
| committer | spv <aquaticvegetable@gmail.com> | 2022-04-24 21:30:15 -0400 |
| commit | 7de438565f03123d37f737d2cd905579e90bc21e (patch) | |
| tree | 2459045c6f8035aac6340361170142a144c0274f /src/gen/shit.c | |
| parent | 5f9294a0e7aac5b9e105ccee737e42fc5c4cff63 (diff) | |
yeet
Diffstat (limited to 'src/gen/shit.c')
| -rw-r--r-- | src/gen/shit.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/gen/shit.c b/src/gen/shit.c index 6e6c5c5..ef354d4 100644 --- a/src/gen/shit.c +++ b/src/gen/shit.c @@ -1,32 +1,32 @@ -#include <stdarg.h> -#include "common.h" -#include <stdio.h> -#include "shit.h" - -extern FILE* fp; - -int _asprintf(char **strp, const char *fmt, ...) { - va_list ap; - char* tmp = NULL; - - *strp = ""; - - /* - * shit - */ - - va_start(ap, fmt); - vfprintf(fp, fmt, ap); - va_end(ap); - -#if 0 - strcpy(fuck_memory_leaks, tmp); - - if (strp) - *strp = fuck_memory_leaks; - - free(tmp); -#endif - - return 0; +#include <stdarg.h>
+#include "common.h"
+#include <stdio.h>
+#include "shit.h"
+
+extern FILE* fp;
+
+int _asprintf(char **strp, const char *fmt, ...) {
+ va_list ap;
+ char* tmp = NULL;
+
+ *strp = "";
+
+ /*
+ * shit
+ */
+
+ va_start(ap, fmt);
+ vfprintf(fp, fmt, ap);
+ va_end(ap);
+
+#if 0
+ strcpy(fuck_memory_leaks, tmp);
+
+ if (strp)
+ *strp = fuck_memory_leaks;
+
+ free(tmp);
+#endif
+
+ return 0;
}
\ No newline at end of file |
