diff options
author | Nikias Bassen | 2011-09-14 02:05:54 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-03-19 01:43:16 +0100 |
commit | abf7eaa91e2ece0f461c71d3dcc0b2900c199209 (patch) | |
tree | 4736105aac67d1c3194880cf19c21bb57b2822d4 | |
parent | 2c1eefbba3cc746ad593210097e64854a0f97464 (diff) | |
download | libimobiledevice-abf7eaa91e2ece0f461c71d3dcc0b2900c199209.tar.gz libimobiledevice-abf7eaa91e2ece0f461c71d3dcc0b2900c199209.tar.bz2 |
Remove asprintf.h from src/
-rw-r--r-- | src/asprintf.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/asprintf.h b/src/asprintf.h deleted file mode 100644 index 3b0072e..0000000 --- a/src/asprintf.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef ASPRINTF_H -#define ASPRINTF_H - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#ifndef HAVE_VASPRINTF -static inline int vasprintf(char **PTR, const char *TEMPLATE, va_list AP) -{ - int res; - res = vsnprintf(NULL, 32768, TEMPLATE, AP); - if (res > 0) { - *PTR = (char*)malloc(res+1); - res = vsnprintf(*PTR, res, TEMPLATE, AP); - } - return res; -} -#endif - -#ifndef HAVE_ASPRINTF -static inline int asprintf(char **PTR, const char *TEMPLATE, ...) -{ - int res; - va_list AP; - va_start(AP, TEMPLATE); - res = vasprintf(PTR, TEMPLATE, AP); - va_end(AP); - return res; -} -#endif - -#endif /* ASPRINTF_H */ |