go top

sprintf

  • n. 把格式数据写成串(函数指令)

双语例句

  • The problem is that the sprintf can easily be used incorrectly.

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

    youdao

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

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

    youdao

  • The sprintf function call shown in Listing 6 changes this to a click time of 57.

    清单 6 中所 sprintf 函数调用单击时间改为 57 毫秒。

    youdao

更多双语例句

百科

sprintf

sprintf指的是字符串格式化命令,函数声明为 int sprintf(char *string, char *format [,argument,...]);,主要功能是把格式化的数据写入某个字符串中,即发送格式化输出到 string 所指向的字符串。sprintf 是个变参函数。使用sprintf 对于写入buffer的字符数是没有限制的,这就存在了buffer溢出的可能性。解决这个问题,可以考虑使用 snprintf函数,该函数可对写入字符数做出限制。

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定