16 fprintf(stderr,
"Usage: arb_message \"the message\"\n");
20 const char *progname = argv[0];
21 if (!progname || progname[0] == 0) progname =
"arb_message";
24 size_t len = strlen(the_message);
25 char *unencoded_lf =
NULp;
26 while ((unencoded_lf = strstr(the_message,
"\\n"))) {
27 unencoded_lf[0] =
'\n';
28 size_t restlen = len-(unencoded_lf-the_message)-1;
29 memmove(unencoded_lf+1, unencoded_lf+2, restlen+1);
36 fprintf(stderr,
"%s: %s\n", progname, the_message);
GBDATA * GB_open(const char *path, const char *opent)
int ARB_main(int argc, char *argv[])
char * ARB_strdup(const char *str)
void GBT_message(GBDATA *gb_main, const char *msg)
void GB_close(GBDATA *gbd)