#define MAX_STRINGS 256
#define MAX_LINE_SIZE 32
-int
+static int
compare (const void *p1, const void *p2)
{
return strverscmp (*((char **) p1), *((char **) p2));
}
int
-main (int argc, char *argv[])
+do_test (void)
{
char line[MAX_LINE_SIZE + 1];
char *str[MAX_STRINGS];
for (i = 0; i < count; ++i)
puts (str[i]);
- exit (EXIT_SUCCESS);
+ return EXIT_SUCCESS;
}
+
+#include <support/test-driver.c>