projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strsep is BSD|GNU, not GNU-only; it's originally from BSD
[musl]
/
src
/
string
/
wcsstr.c
diff --git
a/src/string/wcsstr.c
b/src/string/wcsstr.c
index
fc4bace
..
037d096
100644
(file)
--- a/
src/string/wcsstr.c
+++ b/
src/string/wcsstr.c
@@
-93,7
+93,7
@@
static wchar_t *twoway_wcsstr(const wchar_t *h, const wchar_t *n)
}
}
}
}
-wchar_t *wcsstr(const wchar_t *
h, const wchar_t *
n)
+wchar_t *wcsstr(const wchar_t *
restrict h, const wchar_t *restrict
n)
{
/* Return immediately on empty needle or haystack */
if (!n[0]) return (wchar_t *)h;
{
/* Return immediately on empty needle or haystack */
if (!n[0]) return (wchar_t *)h;