mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
scanner: Improve documentation for strtouint()
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
This commit is contained in:
parent
1cda73f3f8
commit
c88ec7e291
1 changed files with 11 additions and 2 deletions
|
|
@ -576,8 +576,17 @@ free_interface(struct interface *interface)
|
|||
free(interface);
|
||||
}
|
||||
|
||||
/* convert string to unsigned integer,
|
||||
* in the case of error, return -1 */
|
||||
/* Convert string to unsigned integer
|
||||
*
|
||||
* Parses a non-negative base-10 number from the given string. If the
|
||||
* specified string is blank, contains non-numerical characters, is out
|
||||
* of range, or results in a negative number, -1 is returned to indicate
|
||||
* an error.
|
||||
*
|
||||
* Upon error, this routine does not modify or set errno.
|
||||
*
|
||||
* \returns -1 on error, or a non-negative integer on success
|
||||
*/
|
||||
static int
|
||||
strtouint(const char *str)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue