MATCH_NUMBER
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
match_number -
SYNOPSIS
"SYNOPSIS"
int match_number (substring_t * s, int * result, int base);
ARGUMENTS
- s
-
substring to be scanned
- result
-
resulting integer on success
- base
-
base to use when converting string
DESCRIPTION
Given a &substring_t and a base, attempts to parse the substring
as a number in that base. On success, sets result to the integer represented
by the string and returns 0. Returns either -ENOMEM or -EINVAL on failure.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:26 GMT, October 09, 2005