Liste des Groupes | Revenir à col misc |
On 04/03/2025 20:59, rbowman wrote:On Tue, 04 Mar 2025 15:38:57 GMT, Scott Lurndal wrote:Yes, That does have the advantage of putting the elements that relate
Perhaps not, but snprintf can easily append to prior snprint output.
No need to do it all at once.
>
sprintf has been deprecated for decades.
I often use sprintf() like
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);
...
closer together, but its fucking inefficient code wise.
Les messages affichés proviennent d'usenet.