static void do_copyin (MsOle *ole) { char *from; do { from = arg_data[arg_cur++]; if (from) really_put (ole, from, from); } while (from); }
static void do_put (MsOle *ole) { char *from, *to; from = arg_data[arg_cur++]; if (!from) to = NULL; else to = arg_data[arg_cur++]; if (!from || !to) { printf ("put <filename> <stream>\n"); return; } really_put (ole, from, to); }
void WriteFile::put(char c) { really_put(&c, 1); }
void WriteFile::put_line(XString xs) { really_put(xs.data(), xs.size()); if (!xs.endswith('\n')) put('\n'); }