Atoi(): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==int '''atoi'''(const char *)==
{{DISPLAYTITLE:atoi()}}
This function parses a string argument into its [[integer]] representation.
This function, its name short for "'''a'''scii '''to''' '''i'''nteger," parses a string argument into its [[integer]] representation.
 
== Usage ==
 
int myInt = atoi( "42" );
 
 
[[Category:Helpers]]
[[Category:Helpers]]
[[Category:Functions]]

Latest revision as of 01:15, 30 November 2011

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

Usage

int myInt = atoi( "42" );