• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to convert char to int?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to convert char to int?


  • Subject: Re: how to convert char to int?
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 19 Nov 2007 03:06:14 -0800


On Nov 19, 2007, at 1:56 AM, amine ahmadi wrote:

Dear All,

I am looking for a source code that lets me convert
the type char to the int type.

I encourage you to find a book on the C programming language.

char foo;
int bar;
foo = 'A';
bar = (int) foo;

...or do you want to convert a character string into a number? If so look at -[NSString stringWithFormat:], -[NSScanner scanInt:] or one of the low level C lib functions.

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >how to convert char to int? (From: amine ahmadi <email@hidden>)

  • Prev by Date: Re: how to convert char to int?
  • Next by Date: Re: Notification when new email received
  • Previous by thread: Re: how to convert char to int?
  • Next by thread: NSXMLDocument: uncomplete documentation
  • Index(es):
    • Date
    • Thread