Fix warnings and documentation in strnstr.c

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2017-09-13 14:31:01 +02:00 committed by Yaakov Selkowitz
parent 05cfd1aed8
commit 1592a0be0c
1 changed files with 3 additions and 4 deletions

View File

@ -21,17 +21,16 @@ RETURNS
PORTABILITY PORTABILITY
<<strnstr>> is ANSI C. <<strnstr>> is a BSD extension.
<<strnstr>> requires no supporting OS subroutines. <<strnstr>> requires no supporting OS subroutines.
QUICKREF QUICKREF
strnstr ansi pure strnstr pure
*/ */
#undef __STRICT_ANSI__ #define _GNU_SOURCE
#include <_ansi.h>
#include <string.h> #include <string.h>
/* /*