The sprintf function call shown in Listing 6 changes this to a click time of 57.
清单6 中所示的sprintf函数调用将把单击时间改为 57 毫秒。
Names like sprintf and NMTKNS are relics of a time when supercomputers had 32 KB of memory.
像sprintf和nmtkns这样的名称是超级计算机只有32KB内存时代的遗物。
First, we create need a buffer to write to for the sprintf call using the malloc function.
首先,我们在使用malloc函数中的sprintf调用时需要创建一个缓冲器(buffer)。
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) 。
The sprintf function contains a template of the runmqsc command into which values are substituted.
sprintf函数包含一个runmqsc命令模板,上述值将替换模板中的值。
The sprintf function USES a control string to specify the output format, and often the control string includes "% s" (string output).
sprintf函数使用一个控制字符串来指定输出格式,该控制字符串通常包括“%s”(字符串输出)。
The appropriate conversion between decimal intervals and hexadecimal fade percentage is performed using the %X modifier in the sprintf command.
在sprintf命令中使用 %X修改符执行十进制间隔与十六进制衰减百分比之间的相应转换。
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。
If you're processing large amounts of data, fscanf will probably prove valuable and more efficient than, say, using file followed by a split and sprintf command.
如果要处理大量数据,fscanf将能证明自己的价值并比使用file附带split和sprintf命令更有效率。
At the moment, sprintf is the biggest (by far) function in my code, and I use it to format some simple text : %d, %e, %f, %s, nothing with precision or exotic manipulations.
目前,sprintf函数是最大的(到目前为止)在我的代码中,我使用它一些简单的文本格式:%d, %e, %f, %s,没有什么精度或奇异的操作。
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中的缓冲区溢出,而这个函数可以预防这个问题。
应用推荐