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.

  • 相关阅读:
    .NET重构(七):VS报表的制作
    【Linq】标准查询操作符
    1 TaskQueue 实现Task 队列
    1 疑惑处理
    1 JSONP
    1 Web 知识基础
    20 闭包
    1 基础知识
    Web 常用
    【Winform】2 Button
  • 原文地址:https://www.cnblogs.com/freewater/p/2972214.html
Copyright © 2011-2022 走看看