-Wall -Werror, where is strstr?

From: Sacha Chua (sachac@iname.com)
Date: Mon Mar 04 2002 - 19:53:30 EST


I've been trying to get the bootldr to compile with -Wall -Werror.
(Ambitious, isn't it!) Have a few questions...

bootldr.c has

extern char *strstr(const char *haystack, const char *needle);

but strstr is not defined anywhere. Considering that bootldr.c provides
implementations for practically all the other char functions, should
strstr be defined here as well, or at least _somewhere_ in the bootldr?
Maybe we need a strstr.c in the Linux kernel..

I'm filling in the other functions - isblank got accidentally named
isalpha, and isalnum is easy enough to write. I was going to lift the
strstr implementation, but the only strstr.c I could find is in
linux/kernel/arch/i386/lib. linux/kernel/arch/arm/lib doesn't have it.

Advice?

-- 
Sacha Chua <sachac@iname.com>                   3 BS CS geekette =)
Ateneo Cervini-Eliazo Networks (ACENT) tel: 63(2) 426-6001 loc 5925
BOFH excuse #435: Internet shut down due to maintainance


This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:03 EST