> ... Good point... Nevertheless, ato*() and strto*() wouldn't exist if you
> could just simply type-cast...
You're talking about converting strings to and from integral values, Igor. The
original question was about converting integral values to and from other
integral values. There are no, say, itof or ftoi functions, so implicit of
explicit type conversion needs to be performed.
-- Keith Rollin
-- Palm OS Emulator engineer
Igor Mozolevsky <[EMAIL PROTECTED]> on 01/30/2001 06:14:07 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: Igor Mozolevsky <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: Re: GCC Compiler Bug? (Or am I just losing my mind?)
At 18:09 30/01/2001 -0800, you wrote:
> > This is what I was talking about.... A better approach would be to use
> > proper library transforms instead of type-casting...
>
>Is what you are talking about is that the last few values in your printout
>should be "4" instead of "-48"? Perhaps if you took the bugs out of your
>program, it would work better. "S[10] = '4';" is incorrect. It's
>assigning '4'
>to the 11th element of a 10 element array. Try assigning it to S[0].
>
>-- Keith Rollin
>-- Palm OS Emulator engineer
... Good point... Nevertheless, ato*() and strto*() wouldn't exist if you
could just simply type-cast...
Igor M-)
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/