diff options
author | Dave Davenport <qball@gmpclient.org> | 2014-12-02 09:09:20 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2014-12-02 09:09:20 +0100 |
commit | 781ca03f02b7f0002ea7fba43c2de2f43bf644cc (patch) | |
tree | 1bc130cd7cc084c2ec4027af92afe0caa7d869cd /include/helper.h | |
parent | 59ee49a557f04e25fb99be80310c94c9a5684951 (diff) |
Small moving to helper.
Diffstat (limited to 'include/helper.h')
-rw-r--r-- | include/helper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h index cc996e64..5e615f32 100644 --- a/include/helper.h +++ b/include/helper.h @@ -88,4 +88,19 @@ int find_arg_str ( const int argc, char * const argv[], const char * const key, */ int find_arg ( const int argc, char * const argv[], const char * const key ); +/** + * @params tokens + * @param tokens List of (input) tokens to match. + * @param input The entry to match against. + * @param index The current selected index. + * @param data User data. + * + * Tokenized match, match tokens to line input. + * + * @returns 1 when matches, 0 otherwise + */ +int token_match ( char **tokens, const char *input, + __attribute__( ( unused ) ) int index, + __attribute__( ( unused ) ) void *data ); + #endif // __HELPER_H__ |