dynarray.c
void *dynarray_create(Dynarray *hdr) {
	hdr->ary = calloc(hdr->nmemb, sizeof(void *));
	if(hdr->ary)
		hdr->used = 0;
	return hdr->ary;
}
//==============================================================================
// Takes a pointer to a Dynarray struct with nmemb already set, allocates the
// necessary space, and sets ary to point to it. Returns hdr->ary, which will be
// NULL if allocation failed.
//==============================================================================
Takes a pointer to a Dynarray struct with nmemb already set, allocates the
necessary space, and sets ary to point to it. Returns hdr->ary, which will be
NULL if allocation failed.
Takes a pointer to a Dynarray struct with nmemb already set allocates the necessary space and sets ary to point to it . Returns hdr - > ary which will be NULL if allocation failed .
void *dynarray_create(Dynarray *hdr) {
	hdr->ary = calloc(hdr->nmemb, sizeof(void *));
	if(hdr->ary)
		hdr->used = 0;
	return hdr->ary;
}
void * dynarray_create ( Dynarray * hdr ) { hdr -> ary = calloc ( hdr -> nmemb , sizeof ( void * ) ) ; if ( hdr -> ary ) hdr -> used = 0 ; return hdr -> ary ; }
Takes a pointer to a Dynarray struct with nmemb already set, allocates the
necessary space, and sets ary to point to it.
Takes a pointer to a Dynarray struct with nmemb already set allocates the necessary space and sets ary to point to it .