delorie.com/djgpp/bugs/show.cgi | search |
strcmpi() function missing from string.h workaround for compatablity w/ other compilers. strcmpi() funcion is not in string.h however stricmp() is supported as most other compilers also use stricmp(). For compatablity to other compilers I would like to suggest the following code in string.h header file: begin code: .. #if !defined( strcmpi ) /* for compatablity with other compilers */ #define strcmpi( s1, s2) stricmp( (s1), (s2) ) #endif .. end code: thanks, --david
I think the work-around is good enough for those who need this funcion. There is no need to have a global definition that affects everybody just to satisfy some rare cases.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |