Code:
#include <stdio.h>
#include "Functions.h"
char *str;
char *set;
int i;
int counter;
int StrCSpn(char *str, int ch)
{
long nc;
nc = 0;
while(getchar() != 0)
++nc;
i = 0;
while(i < nc)
{
if(str != set)
counter++;
i++;
}
return counter;
}
I changed it to that now i get this:
Code:
--------------------Configuration: CS120 - Win32 Debug--------------------
Compiling...
StrCSpn.c
C:\Program Files\Microsoft Visual Studio\MyProjects\CS120\StrCSpn.c(10) : warning C4028: formal parameter 2 different from declaration
Linking...
LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally
CS120.exe - 0 error(s), 1 warning(s)