atou64(3abz)

atou643abz

Convert a string to a 64-bit unsigned integer.

Usage

#include <abz/atou64.h>

int atou64(const char *str, uint64_t *value);

Libraries

Abz Library (-labz), Debug Library (-ldebug)

Overview

The atou64() function converts a string to a 64-bit unsigned integer.

Return value

The atou64() function returns 0 if successful or -1 if the string is not a valid 64-bit unsigned integer.

Check errno to see what error occurred.

Notes

None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/

Please note that atou64() automatically converts octal (preceded by 0) and hexadecimal (preceded by 0x) numbers, so 077 is not 77, but rather 63.

Author

Written by Abraham vd Merwe <[email protected]>

From libabz0-dev 0.5.1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.