diff options
| author | spv420 <unomilliono@gmail.com> | 2022-04-23 18:22:31 -0400 |
|---|---|---|
| committer | spv420 <unomilliono@gmail.com> | 2022-04-23 18:22:31 -0400 |
| commit | 245a3831d7266913b0281bfa19058b59ac80818b (patch) | |
| tree | d20043b79a8df535a7df9b1d19c249e6ebd2d5a1 /src/gen/shit.c | |
| parent | 8526f9689b7bbeb09a14fbd159ef6d1871909df4 (diff) | |
big b0i
Diffstat (limited to 'src/gen/shit.c')
| -rw-r--r-- | src/gen/shit.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gen/shit.c b/src/gen/shit.c new file mode 100644 index 0000000..6e6c5c5 --- /dev/null +++ b/src/gen/shit.c @@ -0,0 +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; +}
\ No newline at end of file |
