atoi
convert string to integer
Synopsis
#include <stdlib.h>
int atoi(const char *nptr);
Description
The
function converts a character string to an integer value. The
atoi
character string to be converted is pointed to by the input pointer,
The function clears any leading characters for which
true. Conversion begins at the first digit (with an optional preceding sign)
and terminates at the first non-digit.
Error Conditions
The
function returns a zero if no conversion can be made.
atoi
Example
#include <stdlib.h>
int i;
i = atoi("5");
See Also
atol, atof, strtod, strtol,
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* i == 5 */
strtoul
C/C++ Run-Time Library
would return
isspace
.
nptr
3-37
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers