Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020609164427.39373.qmail@web21005.mail.yahoo.com> Date: Sun, 9 Jun 2002 09:44:27 -0700 (PDT) From: Nicholas Wourms Subject: RE: strcasestr not found To: Robert Mark Bram , Cygwin In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi, I ment for you to look at the files, and glean the strcasestr function from it. Indeed, you will notice that the functions in the file are surrounded by defines. So just get what you need and drop it into your program's .c/.h files. Otherwise you'll get mutliple definitions and other uneeded stuff. Cheers, Nicholas P.S. - If that is to complicated, then do a "strcasestr" search on google. I believe the top hit is someone's simple implimentation of this fuction, though I have no idea if it works. --- Robert Mark Bram wrote: > Howdy Nicholas! > > Please excuse my ignorance! > > I downloaded the c and h file, put them in a directory (not > /usr/include) > and tried to compile strlib.c. > > I got a huuuuge list of errors.. Selected highlights from the 54k output > file (I redirected error output).. > > > In file included from strlib.h:146, > from strlib.h:146, > from strlib.h:146, > from strlib.h:146, > from strlib.h:146, > from strlib.h:146, > > strlib.h:146: macro or `#include' recursion too deep > > In file included from strlib.h:147, > from strlib.h:146, > > > Cold this be because some functions in the h file are overiding others? > > Rob > :) > > > > -----Original Message----- > > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On > Behalf > > Of Nicholas Wourms > > Sent: Sunday, 9 June 2002 11:44 PM > > To: Robert Mark Bram; Cygwin > > Subject: Re: strcasestr not found > > > > > > Hi, > > > > I found an interesting implimentation of some string functions on the > web, > > which included a dropin strcasestr. Perhaps you can use it? Go to: > > > > http://primates.ximian.com/~fejj/strlib.c > > http://primates.ximian.com/~fejj/strlib.h > > > > If you are feeling *really* bold, you could download the cygwin source > > code from cvs and add this function to > > /src/newlib/libc/string/strcasestr.c. Then recompile > cygwin > > (which will recompile newlib) and post a patch if it works. > > > > Cheers, > > Nicholas > > > > --- Robert Mark Bram wrote: > > > Howdy all! > > > > > > I have some C code that uses a function called "strcasestr". It > isn't > > > compiling because it doesn't seem the function exists within > Cygwin's C > > > library. Is there a replacement method or an additional library I > could > > > use > > > for this? > > > > > > Thanks! > > > > > > Rob > > > > > > :) > > > :-} > > > ;-> > > > > > > > > > -- > > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > Bug reporting: http://cygwin.com/bugs.html > > > Documentation: http://cygwin.com/docs.html > > > FAQ: http://cygwin.com/faq/ > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Bug reporting: http://cygwin.com/bugs.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/