summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/string
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/string')
-rw-r--r--2.3-1/src/c/string/ascii/gasciia.c4
-rw-r--r--2.3-1/src/c/string/strcspn/gstrcspna.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/2.3-1/src/c/string/ascii/gasciia.c b/2.3-1/src/c/string/ascii/gasciia.c
index 2cd80bfb..ec11d6e2 100644
--- a/2.3-1/src/c/string/ascii/gasciia.c
+++ b/2.3-1/src/c/string/ascii/gasciia.c
@@ -16,8 +16,8 @@
#include "ascii.h"
void gasciia(char *str,int size,int* oup)
{
-
- for(int i=0;i<size;i++)
+ int i;
+ for(i=0;i<size;i++)
{
*(oup+i)=(int)str[i];
}
diff --git a/2.3-1/src/c/string/strcspn/gstrcspna.c b/2.3-1/src/c/string/strcspn/gstrcspna.c
index 0d8de11b..5617e17e 100644
--- a/2.3-1/src/c/string/strcspn/gstrcspna.c
+++ b/2.3-1/src/c/string/strcspn/gstrcspna.c
@@ -14,10 +14,10 @@
#include "strcspn.h"
uint8 gstrcspna(char *str1,int size1,char *str2,int size2)
{
- int ind;
- for(int i=0;i<=size1;i++)
+ int ind,i,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])
{