⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oalloc.c

📁 ofdm的完整系统模型,包含信道参数,多径模型,doppler频移等都可以自由修改!是您做仿真的有力帮助.c语言运行速度快!
💻 C
字号:
/*
 *	*************************************************************************
 *	*									*
 *	*	This confidential and proprietary software may be used only	*
 *	*  as authorized by a licensing agreement from the Alta Group of	*
 *	*  Cadence Design Systems, Inc.  In the event of publication, the	*
 *	*  following notice is applicable:					*
 *	*									*
 *	*    (c) COPYRIGHT 1995 ALTA GROUP OF CADENCE DESIGN SYSTEMS, INC.	*
 *	*			ALL RIGHTS RESERVED				*
 *	*									*
 *	*	The entire notice above must be reproduced on all authorized	*
 *	*  copies.								*
 *	*									*
 *	*************************************************************************
 *
 */
/*
 * FILE:  Oalloc.c
 * DATE:  Nov 1, 1989
 * RELATED FILES:  
 * AUTHOR:  John Lundell
 * DESCRIPTION:  CGS memory allocator
 * NOTES/WARNINGS:  No deallocation function is provided
 * REVISION HISTORY:
 *	Release		Who	Date	Comments
 */
#include "cgs.h"

/*---------------------------------------------------------------
 * FUNCTION:  Oalloc
 * DESCRIPTION:  Allocate memory of various types
 * RETURN VALUE:  Pointer to block of memory
 * NOTES/WARNINGS: 
 * REVISION HISTORY:
 *	Release		Who	Date	Comments
 */
Data Oalloc(i_mem_type, l_size)
int	i_mem_type;
long	l_size;
{
	Data	ret;
	long	size;

	size = (l_size != 0) ? l_size : 1;
	
	ret = (Data)calloc(size,1);

	if (ret == NULL){
#ifdef SPB
		supInitError("Unable to allocate memory segment of %d elements\n", size);
#else
		printf("Unable to allocate memory segment of %d elements\n", size);
#endif
		exit(1);
	}

	return(ret);
}


/*---------------------------------------------------------------
 * FUNCTION:  OallocInit
 * DESCRIPTION:  Reset default VEC_MEM and SLO_MEM values
 * RETURN VALUE: none.  
 * NOTES/WARNINGS: 
 * REVISION HISTORY:
 *	Release		Who	Date	Comments
 */
void OallocInit(i_vec_mem, i_slo_mem)
int	i_vec_mem, i_slo_mem;
{

}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -