zoukankan      html  css  js  c++  java
  • C Standard Library: Formatted Output

    Formatted Output

    The printf functions provide formatted output conversion.
    int fprintf(FILE *stream, const char *format, ...)
    fprintf converts and writes output to stream under the control of format. The return value
    is the number of characters written, or negative if an error occurred.

    int printf(const char *format, ...)
    printf(...) is equivalent to fprintf(stdout, ...).
    int sprintf(char *s, const char *format, ...)
    sprintf is the same as printf except that the output is written into the string s,
    terminated with '\0'. s must be big enough to hold the result. The return count does
    not include the '\0'.
    int vprintf(const char *format, va_list arg)
    int vfprintf(FILE *stream, const char *format, va_list arg)
    int vsprintf(char *s, const char *format, va_list arg)
    The functions vprintf, vfprintf, and vsprintf are equivalent to the corresponding
    printf functions, except that the variable argument list is replaced by arg, which has
    been initialized by the va_start macro and perhaps va_arg calls.

  • 相关阅读:
    jmeter并发定时器
    jmeter配置元件作用域
    tsung使用教程简介
    tsung部署详细教程
    Oracle数据库常用函数使用示例
    常用测试学习网站汇总
    PL&SQL编程基础简介及实践
    测试管理流程制度
    pip 提速方法
    eclipse 环境配置记录
  • 原文地址:https://www.cnblogs.com/freewater/p/2972214.html
Copyright © 2011-2022 走看看