diff options
author | Ankitr19 | 2017-07-07 12:47:56 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-07 12:47:56 +0530 |
commit | 1dc99d862fe3178a3a6e72e2c1338000545ec859 (patch) | |
tree | 9d5ef438302e75e952ba17cb2f678a3196a6ff20 /src/c/string/strcspn/gstrcspna.c | |
parent | c2e305c3b82ed944d57402dd515b3d5839a31980 (diff) | |
download | Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.gz Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.bz2 Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.zip |
Demos and RPi compiler compatibility
Diffstat (limited to 'src/c/string/strcspn/gstrcspna.c')
-rw-r--r-- | src/c/string/strcspn/gstrcspna.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c/string/strcspn/gstrcspna.c b/src/c/string/strcspn/gstrcspna.c index b611fff..2c83c72 100644 --- a/src/c/string/strcspn/gstrcspna.c +++ b/src/c/string/strcspn/gstrcspna.c @@ -16,11 +16,11 @@ uint8 gstrcspna(char *str1,int size1,char *str2,int size2) { int ind,i,j; - for(i=0;i<=size1;i++) + for(i=0;i<=size2;i++) { - for(j=0;j<=size2;j++) + for(j=0;j<=size1;j++) { - if(str2[j]==str1[i]) + if(str2[i]==str1[j]) { ind=j; break; |