pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:2619:
/*! @decl void putchar(int c) *! Appends the character @[c] at the end of the string. */ PIKEFUN void putchar(int c) { struct Buffer_struct *str = THIS; if(!str->str.s) init_string_builder_alloc(&str->str, str->initial, 0); string_builder_putchar(&str->str, c); }
-
/*! @decl int sprintf(
mixed
...
arguments
)
+
/*! @decl int sprintf(
strict_sprintf_format
format, sprintf_args
...
args
)
*! Appends the output from @[sprintf] at the end of the string.
-
+
*! Returns the resulting size of the String.Buffer.
*/ PIKEFUN int sprintf(mixed ... arguments)
-
+
rawtype tFuncV(tAttr("strict_sprintf_format", tOr(tStr, tObj)),
+
tAttr("sprintf_args", tMix), tStr);
+
{ // FIXME: Reset length on exception? struct Buffer_struct *str = THIS; if(!str->str.s) init_string_builder_alloc(&str->str, str->initial, 0); low_f_sprintf(args, 0, &str->str); RETURN str->str.s->len; } /*! @decl string get_copy()