MATCH_TOKEN

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

match_token - Find a token (and optional args) in a string  

SYNOPSIS

"SYNOPSIS"

int match_token (char * s, match_table_t table, substring_t args[]);  

ARGUMENTS

s
the string to examine for token/argument pairs
table
match_table_t describing the set of allowed option tokens and the arguments that may be associated with them. Must be terminated with a &struct match_token whose pattern is set to the NULL pointer.
args[]
array of MAX_OPT_ARGS &substring_t elements. Used to return match locations.
 

DESCRIPTION

Detects which if any of a set of token strings has been passed to it. Tokens can include up to MAX_OPT_ARGS instances of basic c-style format identifiers which will be taken into account when matching the tokens, and whose locations will be returned in the args array.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:27 GMT, October 09, 2005