shithub: brokentoys

ref: 5961a8b6d2f95e29c0b7b0b450eb988763b12c40
dir: /snprinting.c/

View raw version
#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);
}