delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2012/12/22/15:00:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Date: Sat, 22 Dec 2012 22:00:11 +0200
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: Implementation of %n$ conversion specifier for scanf family of functions.
In-reply-to: <50D5FEB0.6000000@gmx.de>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-id: <83pq21q2lw.fsf@gnu.org>
References: <50D4FBCF DOT 2060706 AT gmx DOT de> <8338yyqyod DOT fsf AT gnu DOT org> <50D5FEB0 DOT 6000000 AT gmx DOT de>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sat, 22 Dec 2012 19:40:48 +0100
> From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
> 
> Keeping the variable name shall make the djgpp description
> match the linux scanf man page description and the descriptio given in
> <http://pubs.opengroup.org/onlinepubs/009695399/functions/scanf.html>

That's not Linux docs, that's Posix docs.  There's a huge difference.

> +@code{%@var{n}$} form.  When numbered argument specifications are used,
> +specifying the @var{n}th argument requires that all the leading arguments,
> +from the first to the (@var{n-1})th, are pointers.

This should be (@var{n}-1)th.  Only N is a parameter, 1 is not.

Thanks.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019