php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
formatted_print.c File Reference
#include <math.h>
#include "php.h"
#include "zend_execute.h"
#include <locale.h>

Go to the source code of this file.

Macros

#define LCONV_DECIMAL_POINT   (*lconv->decimal_point)
 
#define ALIGN_LEFT   0
 
#define ALIGN_RIGHT   1
 
#define ADJ_WIDTH   1
 
#define ADJ_PRECISION   2
 
#define NUM_BUF_SIZE   500
 
#define FLOAT_PRECISION   6
 
#define MAX_FLOAT_PRECISION   53
 
#define PRINTF_DEBUG(arg)
 
#define ARG_NUM_NEXT   -1
 
#define ARG_NUM_INVALID   -2
 

Functions

int php_sprintf_get_argnum (char **format, size_t *format_len)
 
 PHP_FUNCTION (sprintf)
 
 PHP_FUNCTION (vsprintf)
 
 PHP_FUNCTION (printf)
 
 PHP_FUNCTION (vprintf)
 
 PHP_FUNCTION (fprintf)
 
 PHP_FUNCTION (vfprintf)
 

Macro Definition Documentation

◆ ADJ_PRECISION

#define ADJ_PRECISION   2

Definition at line 32 of file formatted_print.c.

◆ ADJ_WIDTH

#define ADJ_WIDTH   1

Definition at line 31 of file formatted_print.c.

◆ ALIGN_LEFT

#define ALIGN_LEFT   0

Definition at line 29 of file formatted_print.c.

◆ ALIGN_RIGHT

#define ALIGN_RIGHT   1

Definition at line 30 of file formatted_print.c.

◆ ARG_NUM_INVALID

#define ARG_NUM_INVALID   -2

Definition at line 375 of file formatted_print.c.

◆ ARG_NUM_NEXT

#define ARG_NUM_NEXT   -1

Definition at line 374 of file formatted_print.c.

◆ FLOAT_PRECISION

#define FLOAT_PRECISION   6

Definition at line 34 of file formatted_print.c.

◆ LCONV_DECIMAL_POINT

#define LCONV_DECIMAL_POINT   (*lconv->decimal_point)

Definition at line 26 of file formatted_print.c.

◆ MAX_FLOAT_PRECISION

#define MAX_FLOAT_PRECISION   53

Definition at line 35 of file formatted_print.c.

◆ NUM_BUF_SIZE

#define NUM_BUF_SIZE   500

Definition at line 33 of file formatted_print.c.

◆ PRINTF_DEBUG

#define PRINTF_DEBUG ( arg)

Definition at line 41 of file formatted_print.c.

Function Documentation

◆ PHP_FUNCTION() [1/6]

PHP_FUNCTION ( fprintf )

Definition at line 858 of file formatted_print.c.

◆ PHP_FUNCTION() [2/6]

PHP_FUNCTION ( printf )

Definition at line 804 of file formatted_print.c.

◆ PHP_FUNCTION() [3/6]

PHP_FUNCTION ( sprintf )

Definition at line 756 of file formatted_print.c.

◆ PHP_FUNCTION() [4/6]

PHP_FUNCTION ( vfprintf )

Definition at line 888 of file formatted_print.c.

◆ PHP_FUNCTION() [5/6]

PHP_FUNCTION ( vprintf )

Definition at line 829 of file formatted_print.c.

◆ PHP_FUNCTION() [6/6]

PHP_FUNCTION ( vsprintf )

Definition at line 778 of file formatted_print.c.

◆ php_sprintf_get_argnum()

int php_sprintf_get_argnum ( char ** format,
size_t * format_len )

Definition at line 377 of file formatted_print.c.