[PATCH 3/8] string: correct documentation for strstr and strnstr
Simon Glass
sjg at chromium.org
Thu Jul 2 10:30:02 CEST 2026
On 2026-07-01T17:15:27, Rasmus Villemoes <rv at rasmusvillemoes.dk> wrote:
> string: correct documentation for strstr and strnstr
>
> The len parameter for strnstr() concerns the maximum size of the
> haystack to consider, not the length of the needle being searched for.
>
> strstr() obviously has no len parameter, so remove the copy-pasta.
>
> Signed-off-by: Rasmus Villemoes <rv at rasmusvillemoes.dk>
>
> lib/string.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list