]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strsep.c
document SIGUSR1 in manual page
[tcpdump] / missing / strsep.c
index ddad5964ce193493cca4e972b495132381b995ba..a1e6b3017b6f3f66068a37ee7fc73b180338727f 100644 (file)
  * SUCH DAMAGE.
  */
 
-#include <sys/cdefs.h>
+#ifdef HAVE_CONFIG_H 
+#include <config.h>
+#endif
+
+#include <tcpdump-stdinc.h>
+
 #include <string.h>
-#include <stdio.h>
 
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strsep.c   8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
+#include "interface.h"
 
 /*
  * Get next token from string *stringp, where tokens are possibly-empty
@@ -51,9 +53,7 @@ static char sccsid[] = "@(#)strsep.c  8.1 (Berkeley) 6/4/93";
  * If *stringp is NULL, strsep returns NULL.
  */
 char *
-strsep(stringp, delim)
-       register char **stringp;
-       register const char *delim;
+strsep(char **stringp, const char *delim)
 {
        register char *s;
        register const char *spanp;