Import sources from 2011-03-30 iso image
This commit is contained in:
commit
e5888a1ffd
7810 changed files with 2489717 additions and 0 deletions
20
sys/src/libbio/btestprint.c
Executable file
20
sys/src/libbio/btestprint.c
Executable file
|
@ -0,0 +1,20 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <bio.h>
|
||||
|
||||
void
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
Biobuf b;
|
||||
char *s;
|
||||
int n;
|
||||
|
||||
|
||||
n = atoi(argv[1]);
|
||||
s = malloc(n+1);
|
||||
memset(s, 'a', n);
|
||||
s[n] = '\0';
|
||||
Binit(&b, 1, OWRITE);
|
||||
Bprint(&b, "%s\n", s);
|
||||
Bflush(&b);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue