Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/libbio/btestprint.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <bio.h>
4
 
5
void
6
main(int argc, char **argv)
7
{
8
	Biobuf b;
9
	char *s;
10
	int n;
11
 
12
 
13
	n = atoi(argv[1]);
14
	s = malloc(n+1);
15
	memset(s, 'a', n);
16
	s[n] = '\0';
17
	Binit(&b, 1, OWRITE);
18
	Bprint(&b, "%s\n", s);
19
	Bflush(&b);
20
}