MTK HTTP 协议之内存分配

相关系统内存函数封装

nw_mem.c

#include "nw_define.h"
#include "Vmsys.h"
#include "Stdlib.h"
#include "MMI_include.h"
#include "Med_utility.h"
/*
 *@brief memory malloc
 *@param size
 *@return head address if malloc succesfully else return NULL
 */
void* nw_mem_malloc(nw_uint32 size)
{
	return med_alloc_ext_mem(size);
}

/*
 *@brief memory free
 *@param p ---[in] point address
 *@return void
 */
void nw_mem_free(void **p)
{
	if(NULL == (*p))
	{
		return;
	}
	med_free_ext_mem(p);
	*p = NULL;
}


你可能感兴趣的:(MTK HTTP 协议之内存分配)