summaryrefslogtreecommitdiff
path: root/src/c/string/strcspn/gstrcspna.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/string/strcspn/gstrcspna.c')
-rw-r--r--src/c/string/strcspn/gstrcspna.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/c/string/strcspn/gstrcspna.c b/src/c/string/strcspn/gstrcspna.c
index 0d8de11..2871d33 100644
--- a/src/c/string/strcspn/gstrcspna.c
+++ b/src/c/string/strcspn/gstrcspna.c
@@ -15,9 +15,11 @@
uint8 gstrcspna(char *str1,int size1,char *str2,int size2)
{
int ind;
- for(int i=0;i<=size1;i++)
+ int i;
+ int j;
+ for(i=0;i<=size1;i++)
{
- for(int j=0;j<=size2;j++)
+ for(j=0;j<=size2;j++)
{
if(str2[j]==str1[i])
{