summaryrefslogtreecommitdiff
path: root/main/snprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/snprintf.h')
-rw-r--r--main/snprintf.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/main/snprintf.h b/main/snprintf.h
index 9dd27e662a..93d2034bb6 100644
--- a/main/snprintf.h
+++ b/main/snprintf.h
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2018 The PHP Group |
+ | Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -44,7 +44,7 @@ spprintf is the dynamical version of snprintf. It allocates the buffer in size
as needed and allows a maximum setting as snprintf (turn this feature
off by setting max_len to 0). spprintf is a little bit slower than
snprintf and offers possible memory leakes if you miss freeing the
- buffer allocated by the function. Therfore this function should be
+ buffer allocated by the function. Therefore this function should be
used where either no maximum is known or the maximum is much bigger
than normal size required. spprintf always terminates the buffer.
@@ -82,7 +82,6 @@ PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) ZEND_ATTRIBUTE_FOR
PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap);
PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap);
PHPAPI int ap_php_asprintf(char **buf, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
-PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3);
PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf);
PHPAPI char * php_0cvt(double value, int ndigit, char dec_point, char exponent, char *buf);
PHPAPI char * php_conv_fp(char format, double num,
@@ -118,11 +117,6 @@ END_EXTERN_C()
#define asprintf ap_php_asprintf
#endif
-#ifdef sprintf
-#undef sprintf
-#endif
-#define sprintf php_sprintf
-
typedef enum {
LM_STD = 0,
#if SIZEOF_INTMAX_T
@@ -142,8 +136,6 @@ typedef enum {
#ifdef PHP_WIN32
# define WIDE_INT __int64
-#elif SIZEOF_LONG_LONG_INT
-# define WIDE_INT long long int
#elif SIZEOF_LONG_LONG
# define WIDE_INT long long
#else
@@ -170,12 +162,3 @@ PHPAPI char * ap_php_conv_p2(u_wide_int num, int nbits,
#define FORMAT_CONV_MAX_PRECISION 500
#endif /* SNPRINTF_H */
-
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * End:
- * vim600: sw=4 ts=4 fdm=marker
- * vim<600: sw=4 ts=4
- */