xref: /plan9/sys/src/libbio/btestprint.c (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1 #include <u.h>
2 #include <libc.h>
3 #include <bio.h>
4 
5 void
main(int argc,char ** argv)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