From c2e305c3b82ed944d57402dd515b3d5839a31980 Mon Sep 17 00:00:00 2001 From: Ankitr19 Date: Wed, 5 Jul 2017 10:58:56 +0530 Subject: error due to strcspn removed --- src/c/string/strcspn/gstrcspna.c | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src') 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); -} -*/ + -- cgit