[PATCHv2] xfunc.c: add new funtion xcalloc