Searched defs:newCount (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_ruleval.c104 * Grow 'old' from 'oldCount' to 'newCount' elements, initialize the
110 growRuleValue(int oldCount, int newCount, __nis_rule_value_t *old, argument
116 if (newCount <= 0 || newCount <= oldCount)
127 rv = realloc(old, newCount * sizeof (rv[0]));
131 myself, (oldCount+newCount) * sizeof (rv[0]),
132 oldCount, newCount, sizeof (rv[0]));
137 (void) memset(&rv[oldCount], 0, (newCount-oldCount)*sizeof (rv[0]));
139 for (i = oldCount; i < newCount; i++) {

Completed in 46 milliseconds