diff options
author | Siddhesh Wani | 2017-07-04 19:55:17 +0530 |
---|---|---|
committer | GitHub | 2017-07-04 19:55:17 +0530 |
commit | e7a1a9bd776aa3ebdd13aea4d4ef838e65acb34c (patch) | |
tree | 749b476d7653774c918af42ebd952d4050ed49b6 /2.3-1/src/c/string | |
parent | c66867c874436fb37ef54c67b048885ce094e894 (diff) | |
parent | 8889f4a5edad040f47c3fcb717053352ab0d05b8 (diff) | |
download | Scilab2C-e7a1a9bd776aa3ebdd13aea4d4ef838e65acb34c.tar.gz Scilab2C-e7a1a9bd776aa3ebdd13aea4d4ef838e65acb34c.tar.bz2 Scilab2C-e7a1a9bd776aa3ebdd13aea4d4ef838e65acb34c.zip |
Merge pull request #13 from jschandi/master
Fixed standalone conversion errors with RPi files
Diffstat (limited to '2.3-1/src/c/string')
-rw-r--r-- | 2.3-1/src/c/string/ascii/gasciia.c | 4 | ||||
-rw-r--r-- | 2.3-1/src/c/string/strcspn/gstrcspna.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/2.3-1/src/c/string/ascii/gasciia.c b/2.3-1/src/c/string/ascii/gasciia.c index 2cd80bfb..59c44a83 100644 --- a/2.3-1/src/c/string/ascii/gasciia.c +++ b/2.3-1/src/c/string/ascii/gasciia.c @@ -16,8 +16,8 @@ #include "ascii.h" void gasciia(char *str,int size,int* oup) { - - for(int i=0;i<size;i++) + int i; + for(i=0;i<size;i++) { *(oup+i)=(int)str[i]; } diff --git a/2.3-1/src/c/string/strcspn/gstrcspna.c b/2.3-1/src/c/string/strcspn/gstrcspna.c index 0d8de11b..2871d336 100644 --- a/2.3-1/src/c/string/strcspn/gstrcspna.c +++ b/2.3-1/src/c/string/strcspn/gstrcspna.c @@ -15,9 +15,11 @@ uint8 gstrcspna(char *str1,int size1,char *str2,int size2) { int ind; - for(int i=0;i<=size1;i++) + int i; + int j; + for(i=0;i<=size1;i++) { - for(int j=0;j<=size2;j++) + for(j=0;j<=size2;j++) { if(str2[j]==str1[i]) { |