int acpi_gbl_opterr = 1; int acpi_gbl_optind = 1; int acpi_gbl_sub_opt_char = 0; char *acpi_gbl_optarg;
staticint current_char_ptr = 1;
/******************************************************************************* * * FUNCTION: acpi_getopt_argument * * PARAMETERS: argc, argv - from main * * RETURN: 0 if an argument was found, -1 otherwise. Sets acpi_gbl_Optarg * to point to the next argument. * * DESCRIPTION: Get the next argument. Used to obtain arguments for the * two-character options after the original call to acpi_getopt. * Note: Either the argument starts at the next character after * the option, or it is pointed to by the next argv entry. * (After call to acpi_getopt, we need to backup to the previous * argv entry). *
******************************************************************************/
/******************************************************************************* * * FUNCTION: acpi_getopt * * PARAMETERS: argc, argv - from main * opts - options info list * * RETURN: Option character or ACPI_OPT_END * * DESCRIPTION: Get the next option *
******************************************************************************/
int acpi_getopt(int argc, char **argv, char *opts)
{ int current_char; char *opts_ptr;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.