Ice Sheet System Model
4.18
Code documentation
src
c
classes
Options
OptionUtilities.cpp
Go to the documentation of this file.
1
5
/*Headers:*/
6
/*{{{*/
7
#ifdef HAVE_CONFIG_H
8
#include <config.h>
9
#else
10
#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11
#endif
12
13
#include "../classes.h"
14
#include "../../shared/shared.h"
15
/*}}}*/
16
17
int
StringFromSize
(
char
* cstr,
int
* size,
int
ndims) {
/*{{{*/
18
19
sprintf(&cstr[0],
"["
);
20
for
(
int
i=0; i<ndims-1; i++) sprintf(&cstr[strlen(cstr)],
"%dx"
,size[i]);
21
sprintf(&cstr[strlen(cstr)],
"%d]"
,size[ndims-1]);
22
23
return
(0);
24
}
/*}}}*/
StringFromSize
int StringFromSize(char *cstr, int *size, int ndims)
Definition:
OptionUtilities.cpp:17
Generated on Thu Jul 2 2020 08:09:18 for Ice Sheet System Model by
1.8.19