diff options
author | Abhinav Dronamraju | 2017-07-10 22:08:27 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-10 22:08:27 +0530 |
commit | d2c00f5343785085bcfefb62cbc041a5cffa8f31 (patch) | |
tree | 3d4fc371c30f2340af2def6dcabeb4fd4821eaf8 /src/c/string/strcspn/gstrcspna.c | |
parent | c7d123014c05daaa6c7ce32bc5e86e5f3e7e4692 (diff) | |
parent | 49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (diff) | |
download | Scilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.gz Scilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.tar.bz2 Scilab2C_fossee_old-d2c00f5343785085bcfefb62cbc041a5cffa8f31.zip |
Pulled from upstream master
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; |