]> Git Repo - linux.git/commit - lib/parser.c
lib/parser.c: add match_wildcard() function
authorDu, Changbin <[email protected]>
Thu, 23 Jan 2014 23:54:12 +0000 (15:54 -0800)
committerLinus Torvalds <[email protected]>
Fri, 24 Jan 2014 00:36:55 +0000 (16:36 -0800)
commitaace05097a0fd467230e39acb148be0fdaa90068
treeca2e61621bcb24ad83f3f145987c8ffd5c28c65b
parent0d9dfc23f4d8c17365c84eb48ecca28b963ba192
lib/parser.c: add match_wildcard() function

match_wildcard function is a simple implementation of wildcard
matching algorithm. It only supports two usual wildcardes:
    '*' - matches zero or more characters
    '?' - matches one character
This algorithm is safe since it is non-recursive.

Signed-off-by: Du, Changbin <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/parser.h
lib/parser.c
This page took 0.054424 seconds and 4 git commands to generate.