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); }