[PATCH 1/2] Import strnstr.c from FreeBSD.
Sichen Zhao
1473996754@qq.com
Thu Aug 24 14:34:00 GMT 2017
> 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
>
More information about the Newlib
mailing list