summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/string/strspn/gstrspna.c
diff options
context:
space:
mode:
authorsiddhu89902017-06-30 11:35:55 +0530
committersiddhu89902017-06-30 11:35:55 +0530
commitf805bc9553b3d88d7c9e7dbf59486c5da490231e (patch)
tree62a423b9fcf758c4ec4caf0a537ce3a3038fc368 /2.3-1/src/c/string/strspn/gstrspna.c
parent55f0ed8567f3dd7a248925591a161ee1beb46df0 (diff)
parent4eedf3e9d6ae3cc4120b230b3ecd59799e919dee (diff)
downloadScilab2C-f805bc9553b3d88d7c9e7dbf59486c5da490231e.tar.gz
Scilab2C-f805bc9553b3d88d7c9e7dbf59486c5da490231e.tar.bz2
Scilab2C-f805bc9553b3d88d7c9e7dbf59486c5da490231e.zip
Matrix declaration modified
Diffstat (limited to '2.3-1/src/c/string/strspn/gstrspna.c')
-rw-r--r--2.3-1/src/c/string/strspn/gstrspna.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/2.3-1/src/c/string/strspn/gstrspna.c b/2.3-1/src/c/string/strspn/gstrspna.c
index 94a5181e..af1acbb8 100644
--- a/2.3-1/src/c/string/strspn/gstrspna.c
+++ b/2.3-1/src/c/string/strspn/gstrspna.c
@@ -12,7 +12,7 @@
#include<stdio.h>
#include "strspn.h"
-int max(int a,int b){
+int maxg(int a,int b){
if(a>b) return a;
return b;
}
@@ -37,28 +37,8 @@ uint8 gstrspna(char *str1,int size1,char *str2,int size2)
{
ct=ct-1;
}
- m = max(m,ct);
+ m = maxg(m,ct);
}
}
return m;
}
-/*
-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);
-}
-*/