xref: /plan9/sys/src/libbio/btestprint.c (revision ec59a3ddbfceee0efe34584c2c9981a5e5ff1ec4)
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 }
21