diff options
author | Ankitr19 | 2017-07-05 10:58:56 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-05 10:58:56 +0530 |
commit | c2e305c3b82ed944d57402dd515b3d5839a31980 (patch) | |
tree | 8cea93113a46d7015d1a10638778f92275a0ca94 /src | |
parent | 87823db220f4c3b8bee16c0b2e08027704de1efe (diff) | |
download | Scilab2C_fossee_old-c2e305c3b82ed944d57402dd515b3d5839a31980.tar.gz Scilab2C_fossee_old-c2e305c3b82ed944d57402dd515b3d5839a31980.tar.bz2 Scilab2C_fossee_old-c2e305c3b82ed944d57402dd515b3d5839a31980.zip |
error due to strcspn removed
Diffstat (limited to 'src')
-rw-r--r-- | src/c/string/strcspn/gstrcspna.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/c/string/strcspn/gstrcspna.c b/src/c/string/strcspn/gstrcspna.c index 75912e9..b611fff 100644 --- a/src/c/string/strcspn/gstrcspna.c +++ b/src/c/string/strcspn/gstrcspna.c @@ -14,9 +14,8 @@ #include "strcspn.h" uint8 gstrcspna(char *str1,int size1,char *str2,int size2) { - int ind,i,j;; - for(i=0;i<=size1;i++) - int j; + int ind,i,j; + for(i=0;i<=size1;i++) { for(j=0;j<=size2;j++) @@ -30,22 +29,4 @@ uint8 gstrcspna(char *str1,int size1,char *str2,int size2) } return (ind+1); } -/*int main() -{ - int n1,n2; - char inp1[100000],inp2[100000]; - printf("Enter the length of the first string"); - scanf("%d",&n1); - for(int i=0;i<=(n1+1);i++) - { - scanf("%c",&inp1[i]); - } - printf("Enter the length of the second string"); - scanf("%d",&n2 ); - for(int j=0;j<=(n2+1);j++) - { - scanf("%c",&inp2[j]); - } - strcspnfn(inp1,n1+1,inp2,n2+1); -} -*/ + |