shithub: battleship

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