[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sscanf
From: |
Jeremy C. Reed |
Subject: |
Re: sscanf |
Date: |
Mon, 13 Oct 2003 08:19:45 -0700 (PDT) |
On Sun, 12 Oct 2003, [Windows-1251] ????????? ??????? wrote:
> When I try to compile glibc-2.3.2, i have error:
> -------------------------------------------------------------------------------
> sscanf.c:31: warning: conflicting types for built-in function `sscanf'
> sscanf.c: In function `sscanf':
> sscanf.c:37: error: `va_start' used in function with fixed args
> ../stdio-common/_itoa.h: At top level:
> ../stdio-common/_itoa.h:40: warning: inlining failed in call to `_itoa_word'
> ../stdio-common/_itoa.h:76: warning: called from here
This has been discussed iin the archives a few times. And patches are
available (and can be found with google).
--- stdio-common/sscanf.c.orig 2003-06-11 14:29:13.000000000 +0200
+++ stdio-common/sscanf.c 2003-06-11 14:30:22.000000000 +0200
@@ -27,9 +27,7 @@
/* Read formatted input from S, according to the format string FORMAT. */
/* VARARGS2 */
int
-sscanf (s, format)
- const char *s;
- const char *format;
+sscanf (const char *s, const char *format, ...)
{
va_list arg;
int done;
Jeremy C. Reed
http://bsd.reedmedia.net/
- sscanf, Александр Шепетко, 2003/10/12
- Re: sscanf,
Jeremy C. Reed <=