Revert "Fix bug in mysql_next_result's return value that confused "done" with "error""
[hiphop-php.git] / hphp / runtime / base / zend_printf.h
blobc033bded223f24b0d4db4ff6fae5f5fae66d8e7c
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 2.00 of the Zend license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.zend.com/license/2_00.txt. |
12 | If you did not receive a copy of the Zend license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@zend.com so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
18 #ifndef incl_HPHP_ZEND_PRINTF_H_
19 #define incl_HPHP_ZEND_PRINTF_H_
21 #include "hphp/runtime/base/types.h"
23 namespace HPHP {
24 ///////////////////////////////////////////////////////////////////////////////
26 /**
27 * How PHP formats a string. Called by ext/ext_string.cpp.
29 char *string_printf(const char *format, int len, CArrRef args, int *outlen);
31 // XXX: vspprintf and spprintf have slightly different semantics and flags than
32 // C99 printf (because PHP) so we can't annotate them with ATTRIBUTE_PRINTF
34 int vspprintf(char **pbuf, size_t max_len, const char *format, ...);
35 int vspprintf_ap(char **pbuf, size_t max_len, const char *format, va_list ap);
36 int spprintf(char **pbuf, size_t max_len, const char *format, ...);
38 ///////////////////////////////////////////////////////////////////////////////
41 #endif // incl_HPHP_ZEND_PRINTF_H_