Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 1998 21:50:01 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        gurney_j@resnet.uoregon.edu
Cc:        tlambert@primenet.com, ache@nagual.pp.ru, current@FreeBSD.ORG
Subject:   Re: Nasty GCC bug?
Message-ID:  <199801202150.OAA29572@usr06.primenet.com>
In-Reply-To: <19980120133154.34281@hydrogen.nike.efn.org> from "John-Mark Gurney" at Jan 20, 98 01:31:54 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> actually... there is one for the short...  didn't you read the man page? :)
>      o   The optional character h, specifying that a following d, i, o, u, x,
>          or X conversion corresponds to a short int or unsigned short int ar-
>          gument, or that a following n conversion corresponds to a pointer to
>          a short int argument.
> 
> but the char one is missing...

I nominate "%bx"; it's be helpful for scanf(), as well, to indicate
the pointer value points to a "byte" so you can give the address of
a character variable.

> > Also, my field width limits are being ignored.  I kind of expected
> > it to print out a field limit's worth of hex characters, starting at
> > the lsb.
> 
> yes...  you specified minium field width.. therer is no way to limit
> the number of characters outputed from x...

You forgot the part about it sucking. ;-).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801202150.OAA29572>