.\" 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 "E100_SET_INT_OPTION" "" "06 October 2005" "" "" .SH NAME e100_set_int_option \- check and set an integer option .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void __devinit e100_set_int_option (int * \fIoption\fB, int \fIval\fB, int \fImin\fB, int \fImax\fB, int \fIdefault_val\fB, char * \fIname\fB); \fR .SH "ARGUMENTS" .TP \fB\fIoption\fB\fR a pointer to the relevant option field .TP \fB\fIval\fB\fR the value specified .TP \fB\fImin\fB\fR the minimum valid value .TP \fB\fImax\fB\fR the maximum valid value .TP \fB\fIdefault_val\fB\fR the default value .TP \fB\fIname\fB\fR the name of the option .SH "DESCRIPTION" .PP This routine does range checking on a command-line option. If the option's value is '-1' use the specified default. Otherwise, if the value is invalid, change it to the default.