I am working on converting a vc++ prog to borland c. Also converting it from c++ to c.
Code:
if( strcasecmp(argv[1],"-m")==0||strcasecmp(argv[1],"-menu")==0||
strcasecmp(argv[1],"/menu")==0||strcasecmp(argv[1],"menu")==0||
strcasecmp(argv[1],"-?") ==0||strcasecmp(argv[1],"/m")==0||
strcasecmp(argv[1],"/?")==0){
menu(); //goto menu
return 0;
}
Apperently borland has no strcasecmp(). Not sure if strcasecmp is vc++ standard or a custom function. I tryed to
Code:
#define strcasecmp strlwr
and then
#define strcasecmp strcmpi
and recieved "could not find a match for" error
strcasecmp() is not defined in string.h
would you have a template or function for strcasecmp()?
I think it might look something like this.
Code:
void strcasecmp(){
for(a=0;a<(sizeof(string1));a++){
test =strcmp(string1[a],string2[a]);
an so on...
When I replaced strcasecmp() with strcmpi() I still get errors.