Lines Matching refs:metanames
447 * Increases the capacity of zip->metanames.
456 zip->metanames =
457 realloc(zip->metanames, new_metacount * sizeof(zip->metanames[0]));
458 if (zip->metanames == NULL) return -1;
460 zip->metanames[i] = NULL;
467 * Adds name to zip->metanames.
474 if (zip->metanames == NULL) {
476 zip->metanames = calloc(zip->metacount, sizeof(zip->metanames[0]));
477 if (zip->metanames == NULL) return -1;
485 zip->metanames[i] = (char *) malloc(length+1);
486 if (zip->metanames[i] == NULL) return -1;
487 memcpy(zip->metanames[i], name, length);
488 zip->metanames[i][length] = '\0';
493 /* No free entries in zip->metanames? */
501 if (zip->metanames) {
504 free(zip->metanames[i]);
505 free(zip->metanames);
506 zip->metanames = NULL;