summaryrefslogtreecommitdiff
path: root/src/shit.c
blob: ef354d48acc0d168853f205db7439c508e1f217e (plain)
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
#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;
}