1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

string: Add libc_hidden_proto for strchrnul

Although static linker can optimize it to local call, it follows the
internal scheme to provide hidden proto and definitions.

Reviewed-by: Carlos Eduardo Seo <carlos.seo@linaro.org>
This commit is contained in:
Adhemerval Zanella
2023-02-06 13:15:22 -03:00
parent 9fd63e3537
commit 7ea510127e
12 changed files with 35 additions and 12 deletions

View File

@ -51,5 +51,6 @@ __strchrnul (const char *str, int c_in)
return (char *) word_ptr + index_first_zero_eq (word, repeated_c);
}
#ifndef STRCHRNUL
libc_hidden_def (__strchrnul)
weak_alias (__strchrnul, strchrnul)
#endif