ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


This is an old revision of the document!

Table of Contents


int atoi(str s)


Returns s parsed as a decimal integer. If s cannot be parsed as an integer, returns 0.

If s is too big or too small to fit into int, returns INT_MAX with the sign of the input.

Supports Number prefixes.


<code> atoi(“123”) → 123 atoi(“0”) → 0 atoi(“999999999999”) → 2147483647 Too big atoi(“-99999999999”) → -2147483647 Too small atoi(“not a number”) → 0 Error atoi(“1.3”) → 0 Error <code>

functions/atoi.1492430783.txt.gz · Last modified: 2017/04/17 15:06 by korshun