delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/12/23:10:07

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10212130412.AA16294@clio.rice.edu>
Subject: Re: scanf buffer overflow; support 'hh' conversion specifier [PATCH]
To: djgpp-workers AT delorie DOT com
Date: Thu, 12 Dec 2002 22:12:07 -0600 (CST)
In-Reply-To: <3DF93420.D217F616@phekda.freeserve.co.uk> from "Richard Dawe" at Dec 13, 2002 01:13:04 AM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
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

> Charles Sandmann wrote:
> [snip]
> > d,D, o,O, i,I, u,U, x,X, e,E, g,G all supposedly do the same thing.
> 
> For printf? Or scanf?

Let me do this right:
  d   pointer to int   (decimal)
  D   pointer to long  (decimal)
  o   pointer to int   (octal)
  O   pointer to long  (octal)
  i   pointer to int   (decimal, octal or hexadecimal)
  I   pointer to int   (decimal, octal or hexadecimal)
  u   pointer to uint  (decimal)
  U   pointer to ulong (decimal)
  x   pointer to int   (hex)
  X   pointer to int   (hex) - Is this a documentation defect?  Or real?
  e,E pointer to float
  f   pointer to float
  g,G pointer to float

If you want a jpg of the scanf documentation page, I'll put it on my
web site (high res ...)

- Raw text -


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