summaryrefslogtreecommitdiff
path: root/consreadnum.c
blob: 2e4f8531edfc6bb64de9ddbe4a5ef664bf5bcaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <u.h>
#include <libc.h>

void
main()
{
	char tmp[64];
	int size;

	size = 2*1024*1024*1024;
	if(size > sizeof tmp || size < 0)
		size = sizeof tmp;
	snprint(tmp, sizeof tmp, "%*lud", size-1, 409234UL);
	tmp[size-1] = ' ';
	print("%s\n", tmp);
	exits(nil);
}