php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
print.c File Reference
#include "lexbor/core/str.h"
#include "lexbor/core/print.h"

Go to the source code of this file.

Macros

#define lexbor_sprintf_append(dst, end, src, length)
 

Functions

size_t lexbor_printf_size (const char *format,...)
 
size_t lexbor_vprintf_size (const char *format, va_list va)
 
size_t lexbor_sprintf (lxb_char_t *dst, size_t size, const char *format,...)
 
size_t lexbor_vsprintf (lxb_char_t *dst, size_t size, const char *format, va_list va)
 

Macro Definition Documentation

◆ lexbor_sprintf_append

#define lexbor_sprintf_append ( dst,
end,
src,
length )
Value:
do { \
if ((size_t) ((end) - (dst)) < (length)) { \
return (end) - (dst); \
} \
\
memcpy((dst), (src), (length)); \
(dst) += (length); \
} \
while (false)
unsigned const char * end
Definition php_ffi.h:51

Definition at line 11 of file print.c.

Function Documentation

◆ lexbor_printf_size()

size_t lexbor_printf_size ( const char * format,
... )

Definition at line 24 of file print.c.

◆ lexbor_sprintf()

size_t lexbor_sprintf ( lxb_char_t * dst,
size_t size,
const char * format,
... )

Definition at line 87 of file print.c.

◆ lexbor_vprintf_size()

size_t lexbor_vprintf_size ( const char * format,
va_list va )

Definition at line 37 of file print.c.

◆ lexbor_vsprintf()

size_t lexbor_vsprintf ( lxb_char_t * dst,
size_t size,
const char * format,
va_list va )

Definition at line 100 of file print.c.