is this a FBSD printf bug?

2003-06-21 Thread abc
FBSD 4.8 i hope this isn't a question based on extreme ignorance - i haven't programmed in C in a long time, and i don't have another machine to test this on. i can't understand why the output of the following code produces ints when given variables of type char, so it looks like a bug to me ...

Re: is this a FBSD printf bug?

2003-06-21 Thread Matthew Seaman
On Sat, Jun 21, 2003 at 10:14:12AM +, [EMAIL PROTECTED] wrote: i hope this isn't a question based on extreme ignorance - i haven't programmed in C in a long time, and i don't have another machine to test this on. i can't understand why the output of the following code produces ints when

Re: is this a FBSD printf bug?

2003-06-21 Thread Han Hwei Woo
declare a as an unsigned character array. e.g. unsigned char a[LEN_ARRAY+1]; - Original Message - From: [EMAIL PROTECTED] To: freebsd-questions [EMAIL PROTECTED] Sent: Saturday, June 21, 2003 7:14 AM Subject: is this a FBSD printf bug? FBSD 4.8 i hope this isn't a question based