Skip to main content

Module stdlib

Module stdlib 

Source
Expand description

Safe equivalents of functions declared in C’s stdlib.h header.

Enums§

StrtoFloatError
A floating-point conversion error.
StrtoIntError
An integer conversion error.

Functions§

atof
Converts the initial floating-point number in buf to an f64.
atoi
Converts the initial decimal integer in buf to an i32.
atol
Converts the initial decimal integer in buf to an i64.
strtod
Converts the initial floating-point number in buf to an f64.
strtod_mut
Converts the initial floating-point number in buf to an f64.
strtof
Converts the initial floating-point number in buf to an f32.
strtof_mut
Converts the initial floating-point number in buf to an f32.
strtol
Converts the initial integer in buf using base.
strtol_mut
Converts the initial integer in buf using base.
strtold
Converts the initial floating-point number in buf to f128::f128.
strtold_mut
Converts the initial floating-point number in buf to f128::f128.
strtoul
Converts the initial unsigned integer in buf using base.
strtoul_mut
Converts the initial unsigned integer in buf using base.