Right, you can do it either way - but if, for some
reason, he needs it to be done(maybe to store it that
way, and he knows that there are functions that do
it), wouldn't we be talking about StrAToI and StrIToA?
(I don't know the params off the top of my head)
-Craig
--- Colin Mitchell <[EMAIL PROTECTED]> wrote:
> This really has nothing specific to do with the
> Palm. Anyway, chars and
> ints are essentially interchangable in C. For
> example:
>
> int c = 65;
> printf("%c", c); -> prints "A"
>
> char c = 'A';
> printf("%d", c); -> prints 65
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> >
>
[mailto:[EMAIL PROTECTED]]On
> Behalf Of Gilles
> > Petit
> > Sent: Thursday, June 13, 2002 6:01 AM
> > To: Palm Developer Forum
> > Subject: A very simple question about string
> >
> >
> > Hi,
> > I just wanna know how I can do the following :
> > *I got a number between 0 and 255 and I want to
> have the ASCCI char
> > (1byte...ONLY) link to it. ex: I got 32 ad I want
> "A" code on
> > 1byte (I'm not
> > sure for the 32, but this is just an exemple ;o)
> > *I got a Char on 1byte and I wanna have its ASCII
> number. ex : I
> > got "A" on
> > 1 byte and I want 32
> > Thanks
> > Gilles
> >
> >
> >
> > --
> > For information on using the Palm Developer
> Forums, or to
> > unsubscribe, please see
> http://www.palmos.com/dev/support/forums/
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/