diff options
author | Mystery Man <unknown@mandriva.org> | 2002-09-07 12:44:13 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-09-07 12:44:13 +0000 |
commit | 82abcdec648356ee99fd7285baa432b03cf55df5 (patch) | |
tree | f021805ca2b655ec0650e46dd47ecac8b4e2b845 /mdk-stage1/dietlibc/libstdio/printf.c | |
parent | e60d988c2993b2f868ab8019a2c0e9e1f570cf46 (diff) | |
download | drakx-backup-do-not-use-82abcdec648356ee99fd7285baa432b03cf55df5.tar drakx-backup-do-not-use-82abcdec648356ee99fd7285baa432b03cf55df5.tar.gz drakx-backup-do-not-use-82abcdec648356ee99fd7285baa432b03cf55df5.tar.bz2 drakx-backup-do-not-use-82abcdec648356ee99fd7285baa432b03cf55df5.tar.xz drakx-backup-do-not-use-82abcdec648356ee99fd7285baa432b03cf55df5.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_9_42mdk'.V1_1_9_42mdk
Diffstat (limited to 'mdk-stage1/dietlibc/libstdio/printf.c')
-rw-r--r-- | mdk-stage1/dietlibc/libstdio/printf.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/mdk-stage1/dietlibc/libstdio/printf.c b/mdk-stage1/dietlibc/libstdio/printf.c deleted file mode 100644 index 571420dc3..000000000 --- a/mdk-stage1/dietlibc/libstdio/printf.c +++ /dev/null @@ -1,29 +0,0 @@ -#include <stdarg.h> -#include <linux/types.h> -#include <unistd.h> -#include <stdlib.h> -#include "dietstdio.h" - -int vsnprintf (char *str,size_t size,const char *format, va_list arg_ptr); - -int printf(const char *format,...) -{ - int n; - char *printf_buf; -/* char printf_buf[1024]; */ - va_list arg_ptr; - va_start(arg_ptr, format); - n=vsnprintf(0,1000000,format,arg_ptr); -/* write(1,printf_buf,strlen(printf_buf)); */ - va_end (arg_ptr); - va_start (arg_ptr, format); - printf_buf=alloca(n+2); - n=vsnprintf(printf_buf,n+1,format,arg_ptr); -#ifdef WANT_BUFFERED_STDIO - fwrite(printf_buf,n,1,stdout); -#else - write(1,printf_buf,n); -#endif - va_end (arg_ptr); - return n; -} |