summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2022-08-22 20:44:02 -0400
committerFrans Kaashoek <[email protected]>2022-08-22 20:44:02 -0400
commitbc48c2be47ed4994d23327980737fef441fbbcc8 (patch)
tree871ccd773ade9513b92058412399a253b64e1746 /user
parent2f0b4d698bc48f4efb4b9fdca20f415ec765bf41 (diff)
downloadxv6-labs-bc48c2be47ed4994d23327980737fef441fbbcc8.tar.gz
xv6-labs-bc48c2be47ed4994d23327980737fef441fbbcc8.tar.bz2
xv6-labs-bc48c2be47ed4994d23327980737fef441fbbcc8.zip
Add ref to this nice page about Chapter 9's regexp matcher
Diffstat (limited to 'user')
-rw-r--r--user/grep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/grep.c b/user/grep.c
index 19882b9..2315a0c 100644
--- a/user/grep.c
+++ b/user/grep.c
@@ -62,7 +62,8 @@ main(int argc, char *argv[])
}
// Regexp matcher from Kernighan & Pike,
-// The Practice of Programming, Chapter 9.
+// The Practice of Programming, Chapter 9, or
+// https://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html
int matchhere(char*, char*);
int matchstar(int, char*, char*);