NWatoi(3nw)
NWatoi --
converts string to integer
Synopsis
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
int NWAPI NWatoi
(char NWFAR
string);
Description
The parameters are as follows:
- string
-
(IN) Points to the string of digits to be converted into an integer value.
Return values
- 0X0000
-
No digit was converted.
- Non-zero
-
Value converted from string.
Notices
NWatoi coverts a string of digits into an integer value. The
syntax of the string must be:
long ::= [isspace]*[sign]digit[digit]*
CAUTION:
Only decimal integers will work with NWatoi.
Tabs and/or spaces can precede the digits to be converted. A plus (+) or
minus (-) sign can immediately precede the digits to be converted.
Otherwise, any non-digit character terminates the conversion. Currently
no double-byte characters are converted.
If the string cannot be converted to an integer, 0x0000 will be returned.
Services
Internationalization
NCP calls
None
References
NWisdigit(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.