Name
_ec_atounum2 — Convert e string "str" to an unsigned integral value and store the result in "*nptr"
Synopsis
#include "util.h"
| int **_ec_atounum2** (
| str, | |
| | nptr, | |
| | width, | |
| | minval, | |
| | maxval, | |
| | endptr)
; | |
const char * <var class="pdparam">str</var>
;
void * <var class="pdparam">nptr</var>
;
int <var class="pdparam">width</var>
;
long long <var class="pdparam">minval</var>
;
long long <var class="pdparam">maxval</var>
;
char ** <var class="pdparam">endptr</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Convert e string "str" to an unsigned integral value and store the result in "*nptr".
Recognises decimal, hex and octal values.
- str
-
the source string
- nptr
-
the destination pointer the number is stored in
- width
-
the size in bytes of the integer type to be used
- minval
-
the minimum value allowed for str
- maxval
-
the maximum value allowed for str
- endptr
-
if non-NULL, holds the address of the first non-digit found
0 if "str" was not a valid unsigned integer, 1 if it was