Last change
on this file since 22076 was 22076, checked in by Mathieu Morlighem, 8 years ago |
CHG: simplifying Options* interface, not finished yet
|
File size:
534 bytes
|
Line | |
---|
1 | /*!\file OptionUtilities.cpp
|
---|
2 | * \brief: implementation of the options utilities
|
---|
3 | */
|
---|
4 |
|
---|
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 | }/*}}}*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.