int main()
{
+ const char *hello = "hello";
+ const char *haystack = "Hello\nworld\ncan you tell?";
+
printf("The answer: %i\n", answer());
+ printf("Length of '%s': %u\n", hello, r_strlen(hello));
+
+ const unsigned char **strs = r_strlist();
+ for (const unsigned char **s = strs; *s; s++)
+ printf("returned string array element: %s\n", *s);
+ free (strs);
+
+ const char **matches = r_grep("ell", "Hello\nworld\ncan you tell?");
+ for (const char **m = matches; *m; m++)
+ printf("matched line: %s\n", *m);
+ free (matches);
return 0;
}