Adding strndup to kernel

Colin Günther <[email protected]> Fri, 01 Jan 2010 22:09:36 +0100
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
Hi,

would it be ok to add strndup.cpp to kernel_lib_posix.o?
I'd like to make use of it in the freebsd compat layer, where a string 
(originating in FreeBSD driver code) has to be duplicated and I have a 
bad feeling about using strdup for it.
I know of alternative approaches to implement a safe copy, but I wanted 
to ask first.

Kind Regards
Colin

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev