I'm trying to compile a simple console program on Windows that uses the strLen() function. However, when I try
to run it I get the following error:
Here's my code, not sure what I'm doing wrong:
to run it I get the following error:
Code:
error C3861: 'strlen': identifier not found
Here's my code, not sure what I'm doing wrong:
Code:
#include <stdio.h>
#include <string.h>
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int i;
int correctParams = 1;
int length;
char *arg1;
if ( argc != 3 ) {
printf( "Enter a Smiles string and fragment your searching for\n" );
correctParams = 0;
}
if (correctParams == 1) {
length=strlen(argv[1]);
}
return 0;
}