Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | 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
}