]>
git.cameronkatri.com Git - mandoc.git/blob - test-rewb-bsd.c
9 if (regcomp(&re
, "[[:<:]]word[[:>:]]", REG_EXTENDED
| REG_NOSUB
))
11 if (regexec(&re
, "the word is here", 0, NULL
, 0))
13 if (regexec(&re
, "same word", 0, NULL
, 0))
15 if (regexec(&re
, "word again", 0, NULL
, 0))
17 if (regexec(&re
, "word", 0, NULL
, 0))
19 if (regexec(&re
, "wordy", 0, NULL
, 0) != REG_NOMATCH
)
21 if (regexec(&re
, "sword", 0, NULL
, 0) != REG_NOMATCH
)
23 if (regexec(&re
, "reworded", 0, NULL
, 0) != REG_NOMATCH
)