www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000197

When Created: 12/22/1997 16:26:08
Against DJGPP version: 2.01
By whom: dfields2@acm.org
Abstract: strcmpi() function missing from string.h workaround for compatablity w/ Oterh compilers
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

Note added: 04/13/1999 12:00:47
By whom: eliz@is.elta.co.il
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.

Closed on 04/13/1999 12:00:48: This is not a bug, just a missing non-standard function.
By whom: eliz@is.elta.co.il



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010