- cd = mem_calloc (ncodes, sizeof (iconv_t));
- score = mem_calloc (ncodes, sizeof (size_t));
- states = mem_calloc (ncodes, sizeof (CONTENT_STATE));
- infos = mem_calloc (ncodes, sizeof (CONTENT));
+ cd = p_new(iconv_t, ncodes);
+ score = p_new(size_t, ncodes);
+ states = p_new(CONTENT_STATE, ncodes);
+ infos = p_new(CONTENT, ncodes);