Function anj_string_to_uint64_value
Defined in File utils.h
Function Documentation
-
int anj_string_to_uint64_value(uint64_t *out_val, const char *buff, size_t buff_len)
Parse a decimal string into
uint64_t.Note
The input string is not required to be null-terminated. The caller must explicitly provide the length in
buff_len(e.g., usingstrlen()if the content is null-terminated).- Parameters:
out_val – [out] Parsed value.
buff – Input buffer.
buff_len – Input length.
- Returns:
0 on success, -1 on error (empty input, non-digits present, overflow, or excessive length).