コード例 #1
0
ファイル: test-ole.c プロジェクト: siq-legacy/libole2
static void
do_copyin (MsOle *ole)
{
	char *from;

	do {
		from = arg_data[arg_cur++];
		if (from)
			really_put (ole, from, from);
	} while (from);
}
コード例 #2
0
ファイル: test-ole.c プロジェクト: siq-legacy/libole2
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);
}
コード例 #3
0
ファイル: write.cpp プロジェクト: Binford2000/tmwa
 void WriteFile::put(char c)
 {
     really_put(&c, 1);
 }
コード例 #4
0
ファイル: write.cpp プロジェクト: Binford2000/tmwa
 void WriteFile::put_line(XString xs)
 {
     really_put(xs.data(), xs.size());
     if (!xs.endswith('\n'))
         put('\n');
 }