shithub: brokentoys

ref: 97f4b9b97c470501d25ac82cad771bdff75e9b59
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);
}