shithub: brokentoys

ref: 738f91837bffa7e3ff9ac9323dd91cf9453cde77
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);
}