Liste des Groupes | Revenir à col misc |
On Tue, 04 Mar 2025 15:38:57 GMT, Scott Lurndal wrote:Yes, That does have the advantage of putting the elements that relate closer together, but its fucking inefficient code wise.
Perhaps not, but snprintf can easily append to prior snprint output. NoI often use sprintf() like
need to do it all at once.
>
sprintf has been deprecated for decades.
char* ptr = errbuf;
ptr += sprintf(ptr, "prymed LogiOpt settings:\n");
ptr += sprintf(ptr, "\tcfslib debug : %x\n", cfslib_debug);
ptr += sprintf(ptr, "\tdata bits : %d\n", data_bits);
ptr += sprintf(ptr, "\tdebug : %x\n", debug);
...
Les messages affichés proviennent d'usenet.