#include <stdio.h>
int main(void)
{
char buffer[3];
int r
= snprintf(buffer
, sizeof(buffer
), "%s", "abc"); printf("%d (%d %d %d)\n", r
, buffer
[0], buffer
[1], buffer
[2]); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CiAgICBjaGFyIGJ1ZmZlclszXTsKICAgIGludCByID0gc25wcmludGYoYnVmZmVyLCBzaXplb2YoYnVmZmVyKSwgIiVzIiwgImFiYyIpOwogICAgcHJpbnRmKCIlZCAoJWQgJWQgJWQpXG4iLCByLCBidWZmZXJbMF0sIGJ1ZmZlclsxXSwgYnVmZmVyWzJdKTsKfQo=