diff options
author | siddhu8990 | 2016-06-27 19:16:41 +0530 |
---|---|---|
committer | siddhu8990 | 2016-06-27 19:16:41 +0530 |
commit | 169db0082ebd07baea82d00213db6ffd4dee7cf6 (patch) | |
tree | c6644d701b64dd82a9d17aab12f5dccb10672126 /src/c/string | |
parent | 396de3715ed2615f81325661c264341165f0edb2 (diff) | |
download | Scilab2C_fossee_old-169db0082ebd07baea82d00213db6ffd4dee7cf6.tar.gz Scilab2C_fossee_old-169db0082ebd07baea82d00213db6ffd4dee7cf6.tar.bz2 Scilab2C_fossee_old-169db0082ebd07baea82d00213db6ffd4dee7cf6.zip |
test commit
Diffstat (limited to 'src/c/string')
-rw-r--r-- | src/c/string/convstr/gconvstrs.c | 7 | ||||
-rw-r--r-- | src/c/string/includes/convstr.h | 26 | ||||
-rw-r--r-- | src/c/string/interfaces/int_convstr.h | 25 |
3 files changed, 58 insertions, 0 deletions
diff --git a/src/c/string/convstr/gconvstrs.c b/src/c/string/convstr/gconvstrs.c new file mode 100644 index 0000000..d417496 --- /dev/null +++ b/src/c/string/convstr/gconvstrs.c @@ -0,0 +1,7 @@ +#include <string.h> +#include "convstr.h" + +int gconvstrs(int* in) +{ + return (toupper(in)); +}
\ No newline at end of file diff --git a/src/c/string/includes/convstr.h b/src/c/string/includes/convstr.h new file mode 100644 index 0000000..3a8e6e7 --- /dev/null +++ b/src/c/string/includes/convstr.h @@ -0,0 +1,26 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __CONVSTR_H__ +#define __CONVSTR_H__ + + + #ifdef __cplusplus + extern "C" { + #endif + +int gconvstrs(int* in); + + #ifdef __cplusplus + } /* extern "C" */ + #endif + +#endif /*__CONVSTR_H__*/ diff --git a/src/c/string/interfaces/int_convstr.h b/src/c/string/interfaces/int_convstr.h new file mode 100644 index 0000000..f565b85 --- /dev/null +++ b/src/c/string/interfaces/int_convstr.h @@ -0,0 +1,25 @@ + /* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#ifndef __INT_CONVSTR_H__ +#define __INT_CONVSTR_H__ + + #ifdef __cplusplus + extern "C" { + #endif + +#define g0constrg0(in, size) gconstrs(in) + + #ifdef __cplusplus + } /* extern "C" */ + #endif + +#endif /*__INT_CONVSTR_H__*/ |