Exemple #1
0
static void
do_copyin (MsOle *ole)
{
	char *from;

	do {
		from = arg_data[arg_cur++];
		if (from)
			really_put (ole, from, from);
	} while (from);
}
Exemple #2
0
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);
}
Exemple #3
0
 void WriteFile::put(char c)
 {
     really_put(&c, 1);
 }
Exemple #4
0
 void WriteFile::put_line(XString xs)
 {
     really_put(xs.data(), xs.size());
     if (!xs.endswith('\n'))
         put('\n');
 }