mercredi 25 mars 2015

snprintf c++ alternative

How can I convert this code from C into C++ ?



char out[61]; //null terminator
for (i = 0; i < 20; i++) {
snprintf(out+i*3, 4, "%02x ", obuf[i])
}


I can't find any alternative for snprintf.


Aucun commentaire:

Enregistrer un commentaire