Atoi(): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{wrongtitle|title=atoi}}
{{wrongtitle|title=atoi()}}
==int '''atoi'''(const char *)==
This function, its name short for "'''a'''scii '''to''' '''i'''nteger," parses a string argument into its [[integer]] representation.
This function, named for the phrase "'''a'''scii '''to''' '''i'''nteger," parses a string argument into its [[integer]] representation.
 
== Usage ==
 
int myInt = atoi( "42" );
 
 
[[Category:Helpers]]
[[Category:Helpers]]
[[Category:Functions]]
[[Category:Functions]]

Revision as of 13:05, 21 April 2008

Template:Wrongtitle This function, its name short for "ascii to integer," parses a string argument into its integer representation.

Usage

int myInt = atoi( "42" );