If you want to write a number to a string in C, you would normally
write code such as…
sprintf(my_str, “%d”, num);
…and to append the same to a Vstr string it’s a simple API change to…
vstr_add_fmt(my_vstr, my_vstr->len, “%d”, num);
…however …
Read More