我正在浏览Kernighan & Pike 的书The Practice of Programminggrep.c中的文件(位于https://www.cs.princeton.edu/~bwk/tpop.webpage/grep.c ) 。
^c*
如果我在一个不包含任何内容的文件中
搜索正则表达式
,但d
它会将这些发送到match()函数,该函数将发送 ("c*", "d")matchhere函数。
matchhere发送 ('c', "\0", "d")matchstar依次发送 ("\0", "d") 到matchhere函数。这将返回 1 到主grep()函数
我在哪里错误地取值?