.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "MATCH_NUMBER" "9" "09 October 2005" "" ""
.SH NAME
match_number \-
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int match_number (substring_t * \fIs\fB, int * \fIresult\fB, int \fIbase\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIs\fB\fR
substring to be scanned
.TP
\fB\fIresult\fB\fR
resulting integer on success
.TP
\fB\fIbase\fB\fR
base to use when converting string
.SH "DESCRIPTION"
.PP
Given a &substring_t and a base, attempts to parse the substring
as a number in that base. On success, sets \fIresult\fR to the integer represented
by the string and returns 0. Returns either -ENOMEM or -EINVAL on failure.