Skip to main content

Name

_ec_atounum — Convert e string "str" to an unsigned integral value and store the result in "*nptr"

Synopsis

#include "util.h"

| int **_ec_atounum** ( | str, |   | |   | nptr, |   | |   | width, |   | |   | endptr); |   |

const char * <var class="pdparam">str</var>; void * <var class="pdparam">nptr</var>; int <var class="pdparam">width</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.

Parameters

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

endptr

if non-NULL, holds the address of the first non-digit found

Return Values

0 if "str" was not a valid unsigned integer, 1 if it was

Was this page helpful?