From c851c678881fe3d910b29d20f1c813ecd3b9d920 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 27 Mar 2015 12:35:41 -0400 Subject: put the API version as #defines in the header file (as discussed in #30) --- test/printproperty.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/printproperty.c b/test/printproperty.c index 6be8cb1..b876f0c 100644 --- a/test/printproperty.c +++ b/test/printproperty.c @@ -8,6 +8,10 @@ int main(int argc, char **argv) for (i = 1; i < argc; ++i) { int c; + if (!strcmp(argv[i], "-V")) { + printf("utf8proc version %s\n", utf8proc_version()); + continue; + } check(sscanf(argv[i],"%x",&c) == 1, "invalid hex input %s", argv[i]); const utf8proc_property_t *p = utf8proc_get_property(c); printf("U+%s:\n" -- cgit v1.2.3