pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3202:    */    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); +  low_f_sprintf(args, &str->str);    RETURN str->str.s->len;    }       /*! @decl string get_copy()    *!    *! Get the data from the buffer. Significantly slower than @[get],    *! but does not clear the buffer.    *!    *! @seealso    *! @[get()]