diff options
author | Brijeshcr | 2017-07-07 19:57:00 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-07 19:57:00 +0530 |
commit | 1df1fd26cfd7b19dda4b7a572687c863b530b380 (patch) | |
tree | 001ccc771a846073a791b8b1ed1f109277a52f00 /2.3-1/src/c/string/strcspn | |
parent | 282cbe9542cddac862b88d3431a18db9df781ba7 (diff) | |
parent | 4d7c91e9cfaf823b784961a5762b00040893e3e3 (diff) | |
download | Scilab2C-1df1fd26cfd7b19dda4b7a572687c863b530b380.tar.gz Scilab2C-1df1fd26cfd7b19dda4b7a572687c863b530b380.tar.bz2 Scilab2C-1df1fd26cfd7b19dda4b7a572687c863b530b380.zip |
Signal Processing and Demos Updated
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 b611fff8..2c83c724 100644 --- a/2.3-1/src/c/string/strcspn/gstrcspna.c +++ b/2.3-1/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; |