sprintf

  • 网络把格式数据写成串
sprintfsprintf
  1. The problem is that the sprintf () can easily be used incorrectly .

    这样的问题在于,很容易就会不正确地使用sprintf()。

  2. It is , in fact , the same as the sprintf function in those languages .

    实际上,它类似于以上这些语言中的sprintf函数。

  3. The sprintf function contains a template of the runmqsc command into which values are substituted .

    sprintf函数包含一个runmqsc命令模板,上述值将替换模板中的值。

  4. We 've all seen the C string functions like strcpy (), sprintf (), atol (), etc.

    我们都已经见过C语言中的字符串函数,strcpy(),sprintf(),atoll()等。

  5. The appropriate conversion between decimal intervals and hexadecimal fade percentage is performed using the % X modifier in the sprintf command .

    在sprintf命令中使用%X修改符执行十进制间隔与十六进制衰减百分比之间的相应转换。

  6. Names like sprintf and nmtkns are relics of a time when supercomputers had32 KB of memory .

    像sprintf和nmtkns这样的名称是超级计算机只有32KB内存时代的遗物。

  7. In effect , this is a type of loop , but unlike the loop examples we 've already seen , a sprintf call has to be made for each comparison .

    这是一种类型的排序,但是与我们已经看到的排序的例子不同,它对每次比较操作都调用sprintf。

  8. You can use sprintf () in a way that prevents buffer overflows , but it 's very easy to accidentally permit overflows instead .

    可以通过一种防止缓冲区溢出的方式使用sprintf(),但是意外地留下缓冲区溢出攻击隐患是非常容易的。

  9. If copying takes place between objects that overlap as a result of a call to sprintf () or snprintf (), the results are undefined .

    可以查一下手册里对这种源和目标相同的函数的行为有没有定义。

  10. 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命令更有效率。

  11. 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。

  12. 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中的缓冲区溢出,而这个函数可以预防这个问题。