diff options
author | Ankitr19 | 2017-07-04 15:26:35 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-04 15:26:35 +0530 |
commit | afae3013c86d26dc1b233228431be208705acff0 (patch) | |
tree | 26ed27e507f543efa553e4af5f8a9c9a5b44500e /src/c/string | |
parent | efd4b2645e3fd3c3cdd7b65501a0e7ae26d03c59 (diff) | |
download | Scilab2C_fossee_old-afae3013c86d26dc1b233228431be208705acff0.tar.gz Scilab2C_fossee_old-afae3013c86d26dc1b233228431be208705acff0.tar.bz2 Scilab2C_fossee_old-afae3013c86d26dc1b233228431be208705acff0.zip |
New function and rpi issues resolved
Diffstat (limited to 'src/c/string')
-rw-r--r-- | src/c/string/ascii/gasciia.c | 4 | ||||
-rw-r--r-- | src/c/string/strcspn/gstrcspna.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/c/string/ascii/gasciia.c b/src/c/string/ascii/gasciia.c index 2cd80bf..ec11d6e 100644 --- a/src/c/string/ascii/gasciia.c +++ b/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/src/c/string/strcspn/gstrcspna.c b/src/c/string/strcspn/gstrcspna.c index 0d8de11..5617e17 100644 --- a/src/c/string/strcspn/gstrcspna.c +++ b/src/c/string/strcspn/gstrcspna.c @@ -14,10 +14,10 @@ #include "strcspn.h" uint8 gstrcspna(char *str1,int size1,char *str2,int size2) { - int ind; - for(int i=0;i<=size1;i++) + int ind,i,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]) { |