GNU libmicrohttpd 1.0.2
Loading...
Searching...
No Matches
mhd_tool_str_to_uint.h File Reference

Function to decode the value of decimal string number. More...

#include <stddef.h>
Include dependency graph for mhd_tool_str_to_uint.h:

Go to the source code of this file.

Functions

static size_t mhd_tool_str_to_uint (const char *str, unsigned int *value)
 

Detailed Description

Function to decode the value of decimal string number.

Author
Karlson2k (Evgeny Grin)

Definition in file mhd_tool_str_to_uint.h.

Function Documentation

◆ mhd_tool_str_to_uint()

static size_t mhd_tool_str_to_uint ( const char * str,
unsigned int * value )
static

Convert decimal string to unsigned int. Function stops at the end of the string or on first non-digit character.

Parameters
strthe string to convert
[out]valuethe pointer to put the result
Returns
return the number of digits converted or zero if no digits found or result would overflow the output variable (the output set to UINT_MAX in this case).

Definition at line 41 of file mhd_tool_str_to_uint.h.