2 * C version by Wessel Dankers <wsl@fruit.eu.org>
4 * This code is in the public domain.
13 int main(int argc, char **argv) {
14 char **opts, **opt, *pfx;
17 opts = malloc((2 * argc + 1) * sizeof (* opts)); /* __MEM_CHECKED__ */
26 "Command line usage: %s [flags] -- prefix [recipients]\n",
35 for(i = 2; i < argc; ) {
36 if(!strcmp(argv[i], "--")) {
39 fprintf(stderr, "Command line usage: %s [flags] -- prefix [recipients]\n", argv[0]);
50 execvp(opts[0], opts);