跳转到内容

libs::printf API

文档稀疏
符号
58
已记录
7
修订版本
0.1.0+855c407f828e

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_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

类型定义

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

变量

2

out_fct_wrap_type::fct

                    void(* out_fct_wrap_type::fct) (char character, void *arg) )(char character, void *arg)
                  

上游未提供说明。

libs/utils/printf/printf.c:127

宏定义

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