跳转到内容

libs::printf API

文档稀疏
符号
58
已记录
7
类型
1
继承关系
0
源码分支
main

51 / 58 个公开 API 符号没有说明。

共 1 个类型

类型目录

其他公开符号

函数

27

_etoa

函数静态
        static size_t _etoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:467

_ftoa

函数静态
        static size_t _ftoa (out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsigned int prec, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:339

_ntoa_format

函数静态
        static size_t _ntoa_format (out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, size_t len, bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:227

_ntoa_long

函数静态
        static size_t _ntoa_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long value, bool negative, unsigned long base, unsigned int prec, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:281

_ntoa_long_long

函数静态
        static size_t _ntoa_long_long (out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long long value, bool negative, unsigned long long base, unsigned int prec, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:306

_out_buffer

函数静态
        static void _out_buffer (char character, void *buffer, size_t idx, size_t maxlen)
      

上游未提供说明。

libs/utils/printf/printf.c:133

_out_char

函数静态
        static void _out_char (char character, void *buffer, size_t idx, size_t maxlen)
      

上游未提供说明。

libs/utils/printf/printf.c:149

_out_fct

函数静态
        static void _out_fct (char character, void *buffer, size_t idx, size_t maxlen)
      

上游未提供说明。

libs/utils/printf/printf.c:159

_out_null

函数静态
        static void _out_null (char character, void *buffer, size_t idx, size_t maxlen)
      

上游未提供说明。

libs/utils/printf/printf.c:142

_out_rev

函数静态
        static size_t _out_rev (out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, size_t len, unsigned int width, unsigned int flags)
      

上游未提供说明。

libs/utils/printf/printf.c:199

_putchar

函数
        void _putchar (char character)
      

printf() Output a character to a custom device like UART, used by thefunction This function is declared here only. character Character to output You have to write your custom implementation somewhere

libs/utils/printf/printf.h:49

_vsnprintf

函数静态
        static int _vsnprintf (out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_list va)
      

上游未提供说明。

libs/utils/printf/printf.c:577

fctprintf

函数
        int fctprintf (void(*out)(char character, void *arg), void *arg, const char *format,...)
      

printf() _putchar() printf with output function You may use this as dynamic alternative towith its fixedoutput out An output function which takes one character and an argument pointer arg An argument pointer for user data passed to output function format A string that specifies the format of the output The number of characters that are sent to the output function, not counting the terminating null character

libs/utils/printf/printf.h:109

fctprintf

函数
        int fctprintf (void(*out)(char character, void *arg), void *arg, const char *format,...)
      

printf() _putchar() printf with output function You may use this as dynamic alternative towith its fixedoutput out An output function which takes one character and an argument pointer arg An argument pointer for user data passed to output function format A string that specifies the format of the output The number of characters that are sent to the output function, not counting the terminating null character

libs/utils/printf/printf.c:906

vsnprintf_

函数
        int vsnprintf_ (char *buffer, size_t count, const char *format, va_list va)
      

上游未提供说明。

libs/utils/printf/printf.h:88

类型定义

1

out_fct_type

类型定义
        typedef void(* out_fct_type) (char character, void *buffer, size_t idx, size_t maxlen) )(char character, void *buffer, size_t idx, size_t maxlen)
      

上游未提供说明。

libs/utils/printf/printf.c:122

宏定义

25

printf

宏定义

printf() printf() putchar if you useTo avoid conflicts with the regularAPI it is overridden by macro defines and internal underscore-appended functions like printf Tiny printf implementation You have to implement() are used. format A string that specifies the format of the output The number of characters that are written into the array, not counting the terminating null character

libs/utils/printf/printf.h:60

snprintf

宏定义

Tiny snprintf/vsnprintf implementation. buffer A pointer to the buffer where to store the formatted string count The maximum number of characters to store in the buffer, including a terminating null character format A string that specifies the format of the output va A value identifying a variable arguments list The number of characters that COULD have been written into the buffer, not counting the terminating null character. A value equal or larger than count indicates truncation. Only when the returned value is non-negative and less than count, the string has been completely written.

libs/utils/printf/printf.h:85

sprintf

宏定义

Tiny sprintf implementation Due to security reasons (buffer overflow) YOU SHOULD CONSIDER USING (V)SNPRINTF INSTEAD! buffer A pointer to the buffer where to store the formatted string. MUST be big enough to store the output! format A string that specifies the format of the output The number of characters that are WRITTEN into the buffer, not counting the terminating null character

libs/utils/printf/printf.h:71

vprintf

宏定义

Tiny vprintf implementation. format A string that specifies the format of the output va A value identifying a variable arguments list The number of characters that are WRITTEN into the buffer, not counting the terminating null character

libs/utils/printf/printf.h:97

文件

2