nmappings
for (i = 0; i < nmappings; i++) {
if (i == nmappings)
if ((string = calloc(nmappings, longestflaglen + 1)) == NULL)