PyLong_FromString

Convert string to python long. Roughly, parses format

space* sign? space* Integer ('l'|'L')? Null

Integer: '0' ('x'|'X') HexDigits '0' OctalDigits DecimalDigits

extern (C)
PyLong_FromString
(
char* str
,
char** pend
,
int base
)

Parameters

str char*

null-terminated string to convert.

pend char**

if not null, return pointer to the terminating null character.

base int

base in which string integer is encoded. possible values are 8, 10, 16, or 0 to autodetect base.

Meta