diff options
author | Siddhu8990 | 2017-07-04 19:58:16 +0530 |
---|---|---|
committer | Siddhu8990 | 2017-07-04 19:58:16 +0530 |
commit | 0de1d810a20afa0d8a76cecca8d651e7696a86b6 (patch) | |
tree | 0063bfdcb730f75e8cd4281d6f775791883c87d4 /2.3-1/src/c/string/strcspn | |
parent | c66867c874436fb37ef54c67b048885ce094e894 (diff) | |
parent | 46f9a6c3b848a549f5d92929fd6d1efb501e176a (diff) | |
download | Scilab2C-0de1d810a20afa0d8a76cecca8d651e7696a86b6.tar.gz Scilab2C-0de1d810a20afa0d8a76cecca8d651e7696a86b6.tar.bz2 Scilab2C-0de1d810a20afa0d8a76cecca8d651e7696a86b6.zip |
Merge branch 'Ankitr19-master'
Merged with Ankit's work. Added new functions (amell)
Diffstat (limited to '2.3-1/src/c/string/strcspn')
-rw-r--r-- | 2.3-1/src/c/string/strcspn/gstrcspna.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/2.3-1/src/c/string/strcspn/gstrcspna.c b/2.3-1/src/c/string/strcspn/gstrcspna.c index 0d8de11b..5617e17e 100644 --- a/2.3-1/src/c/string/strcspn/gstrcspna.c +++ b/2.3-1/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]) { |