sprintf
来源:互联网 发布:大巴车出租软件 编辑:程序博客网 时间:2024/05/20 03:06
int sprintf ( char * str, const char * format, ... );
Write formatted data to string
Composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer pointed by str.The size of the buffer should be large enough to contain the entire resulting string (see snprintf for a safer version).
A terminating null character is automatically appended after the content.
After the format parameter, the function expects at least as many additional arguments as needed for format.
The buffer should be large enough to contain the resulting string.
There should be at least as many of these arguments as the number of values specified in the format specifiers. Additional arguments are ignored by the function.
Return Value
On success, the total number of characters written is returned. This count does not include the additional null-character automatically appended at the end of the string.On failure, a negative number is returned.
0 0
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf()
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf
- sprintf
- Sprintf
- sprintf
- sprintf
- sprintf
- HDU 1059
- 程序员的修养
- 买来四年自由时光——记一个另类大学生
- 有时候把IDE或者微机重启下也是解决问题的一个方法
- Populating Next Right Pointers in Each Node II -- LeetCode
- sprintf
- 由于没有远程桌面授权服务器可以提供许可证,远程会话被中断。请跟服务器管理员联系
- 74HC/LS/HCT/F系列芯片的区别
- IIS7中的站点、应用程序和虚拟目录详细介绍
- Linux学习之CentOS(二十五)--Linux磁盘管理:LVM逻辑卷基本概念及LVM的工作原理
- 单片机的led跑马灯程序
- 暴力枚举-POJ2965 The Pilots Brothers' refrigerator
- 用C++实现ASCII码字符数组转16进制字符数组的功能