2 * C version by Wessel Dankers <wsl@fruit.eu.org>
4 * This code is in the public domain.
13 static void print_usage (const char *progname)
15 fprintf (stderr, "Command line usage: %s [flags] -- prefix [recipients]\n",
20 int main (int argc, char **argv)
22 char **opts, **opt, *pfx;
26 print_usage (argv[0]);
29 opts = malloc((2 * argc + 1) * sizeof (*opts));
37 "Command line usage: %s [flags] -- prefix [recipients]\n",
46 for (i = 2; i < argc;) {
47 if (!strcmp (argv[i], "--")) {
50 print_usage (argv[0]);
60 execvp (opts[0], opts);