fmttoregex fmttoregex
Brought to you by:
hegdevasant,
mananth
File | Date | Author | Commit |
---|---|---|---|
COPYING | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
Makefile | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
README | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
converter.c | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
formats | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
match.c | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
regex_sprintf.c | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
regex_sprintf.h | 2013-01-09 |
![]() |
[b38b5a] Initial commit |
./converter formats.in > regex.out creates in regex.out a regular expression for each format string in formats.in. ./match -r regex.out < messages.out > match.out reads and compiles the regular expressions in regex.out, then reads the messages in messages.out. It prints the message, then prints all regular expressions that match it (or "no match"). "make" creates formats.in and messages.out, among other things. BUGS: 1. (FIXED) The last line printed by ./test is blank. Delete this by hand to make regex.out acceptable to ./match. 2. (FIXED) When the buffer passed to regex_snprintf() is too small to hold the converted result, the number of characters returned is smaller than what would have been printed if the buffer was large enough.