The problem is that the sprintf can easily be used incorrectly.
这样的问题在于,很容易就会不正确地使用sprintf 。
It is, in fact, the same as the sprintf function in those languages.
实际上,它类似于以上这些语言中的sprintf函数。
The sprintf function call shown in Listing 6 changes this to a click time of 57.
清单6 中所示的sprintf函数调用将把单击时间改为 57 毫秒。
For example, with a 10,000-item list you could expect to call sprintf over 240,000 times.
例如,对于一个10,000个元素的列表来说,您可能会调用sprintf超过240,000次。
Names like sprintf and NMTKNS are relics of a time when supercomputers had 32 KB of memory.
像sprintf和nmtkns这样的名称是超级计算机只有32KB内存时代的遗物。
These functions include strcpy(3), strcat(3), sprintf(3) (with cousin vsprintf(3)), and gets(3).
这些函数包括strcpy(3)、strcat(3)、sprintf(3) (及其同类vsprintf(3) )和gets(3) 。
Because the buffer that I'll write to (page) is already in kernel space, I can manipulate it directly and use sprintf to write the next fortune.
由于我们刚才写入数据的缓冲区(page)已经在内核空间中了,因此可以直接对其进行操作,并使用sprintf来写入下一个fortune。
Instead of calling sprintf all those times, we call it just once for each item in the hash in order to generate a sort field in the hash, and then use that sort field directly during the sort.
现在不需要每次都调用sprintf,对hash表中的每一项,只需要调用一次该函数,就可以在hash表中生成一个排序字段,然后在排序时就可以使用这个排序字段了。
This function is available everywhere, and you should use it just about all the time; a lot of security holes have been based on buffer overruns in sprintf, and this can protect against them.
这个函数随处可用,而且您应该始终使用它;很多安全漏洞都归咎于sprintf中的缓冲区溢出,而这个函数可以预防这个问题。
This function is available everywhere, and you should use it just about all the time; a lot of security holes have been based on buffer overruns in sprintf, and this can protect against them.
这个函数随处可用,而且您应该始终使用它;很多安全漏洞都归咎于sprintf中的缓冲区溢出,而这个函数可以预防这个问题。
应用推荐