pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:5882: Inside #if defined(HAVE_STRPTIME)
   *! The year, including century (for example, 1991).    *! @enddl    *!    */   PMOD_EXPORT void f_strptime (INT32 args)   {    struct tm tm;    const char* ret;    if (Pike_sp[-1].u.string->size_shift || Pike_sp[-2].u.string->size_shift)    Pike_error("Only 8bit strings are supported\n"); +  memset(&tm, 0, sizeof(tm));    ret = strptime(Pike_sp[-2].u.string->str, Pike_sp[-1].u.string->str, &tm);    pop_n_elems(args);    if (ret)    encode_tm_tz(&tm);    else    push_int(0);   }   #endif /* HAVE_STRPTIME */   /*! @decl string(1..255) strftime( string(1..255) format, mapping(string:int) tm)    *! See also @[Gettext.setlocale]