summaryrefslogtreecommitdiff
path: root/snprinting.c
blob: b0a70953cf20d431f23601f4f42c87458263201e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <u.h>
#include <libc.h>

void
main()
{
	char buf[128];
	int n;

	n = snprint(buf, sizeof buf, "%s:%d\n", "actual.out", 2);
	print("%d\n", n);
	exits(0);
}