Date: Tue, 20 Jan 1998 21:46:02 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: karpen@ocean.campus.luth.se (Mikael Karpberg) Cc: tlambert@primenet.com, current@FreeBSD.ORG Subject: Re: Nasty GCC bug? Message-ID: <199801202146.OAA29266@usr06.primenet.com> In-Reply-To: <199801202125.WAA22867@ocean.campus.luth.se> from "Mikael Karpberg" at Jan 20, 98 10:25:16 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > %x expects and int, %lx expects a long. There is not one that expects > > a short or a char. > > Er... Terry? Tried "man sprintf"? :-) Naw, I was doing "man printf", which was getting me the shell printf. 8-). > none for int, l for long, h for short. Thus %hx. That works for a 'short'; what about my 'char'? VMS used to have a ":", I think, for something like "%02:2x" to truncate values larger than the field. Unfortunately, if the value was larger, it would put out asterisks instead of digits, to indicate that you had overflowed the thing. 8-(. 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?199801202146.OAA29266>