make_snow_data.c
来自「超强的大尺度水文模拟工具」· C语言 代码 · 共 36 行
C
36 行
#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 + =
减小字号Ctrl + -
显示快捷键?