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.

  • 相关阅读:
    原型和原型链
    面向对象
    git在idea中的使用,如何构远程git方仓库
    java maven 安装
    Kafka消费者APi
    Kafka生产者APi
    kafka基本概念
    redis常用命令
    redis.conf配置文件参数说明
    Redis.RedisNativeClient的方法get_Db 没有实现
  • 原文地址:https://www.cnblogs.com/freewater/p/2972214.html
Copyright © 2011-2022 走看看