Code:
#include <stdio.h>
int main(int argc, char** argv)
{
	char acNamme[10];
	char acPrint[10];
	int iCmp;
	char acName[]= "what is your name";
	printf(acName);
	scanf("%s \n", &acNamme);
	printf("%s \n", acNamme);
	gets(acPrint);
	printf("%s",acPrint);
	iCmp = strncmpi(acNamme,acPrint,3);
	if(iCmp==0)
	{
		printf("Comparison success");
	}
	else
	printf("not success");
}
why i get an error "undefined reference to 'strncmpi' "

Last edited by shabbir; 3Nov2009 at 09:00.. Reason: Code blocks