library/src/garbage_collection/BP_MemoryGarbageCollector.cc
// garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
char * BP_strndup(P_BP_GARBAGE_COLLECTOR_DATA gc, char *msg, char *str, size_t str_len)
{
	char * new_ptr = (char *) bpstrndup(str, str_len);
	BP_GarbageCollectorLogChunk(gc, NULL, new_ptr, str_len, BP_GARBAGE_COLLECTOR_DATA_ALLOC_STRNDUP);
	return new_ptr;
}
char * BP_strndup ( P_BP_GARBAGE_COLLECTOR_DATA gc , char * msg , char * str , size_t str_len ) { char * new_ptr = ( char * ) bpstrndup ( str , str_len ) ; BP_GarbageCollectorLogChunk ( gc , NULL , new_ptr , str_len , BP_GARBAGE_COLLECTOR_DATA_ALLOC_STRNDUP ) ; return new_ptr ; }
garbage collection friendly version of bpbpstrdup
garbage collection friendly version of bpbpstrdup
// allocate new pointer // log the garbage collector chunk (add list item) // return the new pointer