strsep.c (276788) | strsep.c (285275) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#ifdef HAVE_CONFIG_H 35#include <config.h> 36#endif 37 38#include <tcpdump-stdinc.h> 39 40#include <string.h> 41 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#ifdef HAVE_CONFIG_H 35#include <config.h> 36#endif 37 38#include <tcpdump-stdinc.h> 39 40#include <string.h> 41 |
42#include "interface.h" 43 |
|
42/* 43 * Get next token from string *stringp, where tokens are possibly-empty 44 * strings separated by characters from delim. 45 * 46 * Writes NULs into the string at *stringp to end tokens. 47 * delim need not remain constant from call to call. 48 * On return, *stringp points past the last NUL written (if there might 49 * be further tokens), or is NULL (if there are definitely no more tokens). --- 29 unchanged lines hidden --- | 44/* 45 * Get next token from string *stringp, where tokens are possibly-empty 46 * strings separated by characters from delim. 47 * 48 * Writes NULs into the string at *stringp to end tokens. 49 * delim need not remain constant from call to call. 50 * On return, *stringp points past the last NUL written (if there might 51 * be further tokens), or is NULL (if there are definitely no more tokens). --- 29 unchanged lines hidden --- |