From 58b47dd22440429495a586a13bf975fad4a5645e Mon Sep 17 00:00:00 2001 From: Mystery Man Date: Fri, 28 Mar 2003 17:06:34 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'V9_1_29mdk'. --- mdk-stage1/dietlibc/libugly/asprintf.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 mdk-stage1/dietlibc/libugly/asprintf.c (limited to 'mdk-stage1/dietlibc/libugly/asprintf.c') diff --git a/mdk-stage1/dietlibc/libugly/asprintf.c b/mdk-stage1/dietlibc/libugly/asprintf.c deleted file mode 100644 index d10c20b4a..000000000 --- a/mdk-stage1/dietlibc/libugly/asprintf.c +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include -#include -#include "dietwarning.h" - -extern int vsnprintf (char *str,size_t size,const char *format, va_list arg_ptr); - -int asprintf(char **s, const char *format,...) -{ - int n; - va_list arg_ptr; - va_start(arg_ptr, format); - n=vsnprintf(0,1000000,format,arg_ptr); - va_end (arg_ptr); - va_start (arg_ptr, format); - if ((*s=malloc(n+2))) { - n=vsnprintf(*s,n+1,format,arg_ptr); - va_end(arg_ptr); - return n; - } - return -1; -} -- cgit v1.2.1