This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Import strnstr.c from FreeBSD.


Hi Sichen,

On Aug 24 10:14, Sichen Zhao wrote:
---
  newlib/libc/string/strnstr.c | 65 +++++++++++++++++++++++++++++++++++++++++++
Isn't there a header patch missing?
You mean the string.h patch? So i need add the prototype declaration about strnstr.c in string.h, just something like:
#if __POSIX_VISIBLE >= 200809
size_t     _EXFUN(strnlen,(const char *, size_t));
#endif
#if __BSD_VISIBLE
char     *_EXFUN(strsep,(char **, const char *));
#endif

right?


Thanks,
Corinna





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]