]>
git.cameronkatri.com Git - mandoc.git/blob - test-rewb-sysv.c
10 if (regcomp(&re
, "\\<word\\>", REG_EXTENDED
| REG_NOSUB
))
12 if (regexec(&re
, "the word is here", 0, NULL
, 0))
14 if (regexec(&re
, "same word", 0, NULL
, 0))
16 if (regexec(&re
, "word again", 0, NULL
, 0))
18 if (regexec(&re
, "word", 0, NULL
, 0))
20 if (regexec(&re
, "wordy", 0, NULL
, 0) != REG_NOMATCH
)
22 if (regexec(&re
, "sword", 0, NULL
, 0) != REG_NOMATCH
)
24 if (regexec(&re
, "reworded", 0, NULL
, 0) != REG_NOMATCH
)