summaryrefslogtreecommitdiff
path: root/src/c/string/strcspn/gstrcspna.c
diff options
context:
space:
mode:
authorJorawar Singh2017-07-04 15:14:46 +0530
committerJorawar Singh2017-07-04 15:14:46 +0530
commit121b455e1e46617c670a8b9dfa77bbb1aa97a51a (patch)
treed4ebfb141c8036c3d59c0ac9007003f79ed68d02 /src/c/string/strcspn/gstrcspna.c
parenta3dfa2a4069740517ca6e83f99dd4e0dbb71c377 (diff)
downloadscilab2c-121b455e1e46617c670a8b9dfa77bbb1aa97a51a.tar.gz
scilab2c-121b455e1e46617c670a8b9dfa77bbb1aa97a51a.tar.bz2
scilab2c-121b455e1e46617c670a8b9dfa77bbb1aa97a51a.zip
Fixed standalone conversion errors with RPi files
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 0d8de11b..2871d336 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])
{