📄 make_snow_data.c
字号:
#include <stdio.h>#include <stdlib.h>#include <vicNl.h> static char vcid[] = "$Id: make_snow_data.c,v 3.1 1999/02/16 18:02:07 vicadmin Exp $";snow_data_struct **make_snow_data(int nveg)/********************************************************************** make_snow_data Keith Cherkauer January 22, 1997 This routine makes an array of snow cover data structures, one for each vegetation type plus bare soil. modifications: 07-09-98 modified to make te make a two dimensional array which also accounts for a variable number of snow elevation bands KAC**********************************************************************/{ extern option_struct options; int i; snow_data_struct **temp; temp = (snow_data_struct **) calloc(nveg, sizeof(snow_data_struct *)); for(i=0;i<nveg;i++) { temp[i] = (snow_data_struct *) calloc(options.SNOW_BAND, sizeof(snow_data_struct)); } return temp;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -