dynarray.c
void *dynarray_resize(Dynarray *hdr, uint32_t nmemb) {
	void *new_ary = realloc(hdr->ary, sizeof(void *) * nmemb);
	if(new_ary) {
		hdr->nmemb = nmemb;
		hdr->ary = new_ary;
	}
	return new_ary;
}
//==============================================================================
// Attempts to resize the array to nmemb units. (In general, this should be
// bigger rather than smaller, but both work.) Setting nmemb equal to hdr->nmemb
// * 2 is a good general starting point. Returns the new ary on success, NULL
// on failure.
//==============================================================================
Attempts to resize the array to nmemb units. (In general, this should be
bigger rather than smaller, but both work.) Setting nmemb equal to hdr->nmemb
2 is a good general starting point. Returns the new ary on success, NULL
on failure.
Attempts to resize the array to nmemb units . ( In general this should be bigger rather than smaller but both work . ) Setting nmemb equal to hdr - > nmemb 2 is a good general starting point . Returns the new ary on success NULL on failure .
void *dynarray_resize(Dynarray *hdr, uint32_t nmemb) {
	void *new_ary = realloc(hdr->ary, sizeof(void *) * nmemb);
	if(new_ary) {
		hdr->nmemb = nmemb;
		hdr->ary = new_ary;
	}
	return new_ary;
}
void * dynarray_resize ( Dynarray * hdr , uint32_t nmemb ) { void * new_ary = realloc ( hdr -> ary , sizeof ( void * ) * nmemb ) ; if ( new_ary ) { hdr -> nmemb = nmemb ; hdr -> ary = new_ary ; } return new_ary ; }
Attempts to resize the array to nmemb units.
Attempts to resize the array to nmemb units .