compat_strsep.c (6d38604fc532a3fc060788e3ce40464b46047eaf) | compat_strsep.c (c1c95add8c80843ba15d784f95c361d795b1f593) |
---|---|
1/* $Id: compat_strsep.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */ | 1/* $Id: compat_strsep.c,v 1.6 2022/06/21 10:34:14 schwarze Exp $ */ |
2/* $OpenBSD: strsep.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */ 3 4/*- 5 * Copyright (c) 1990, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32#include "config.h" 33 | 2/* $OpenBSD: strsep.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */ 3 4/*- 5 * Copyright (c) 1990, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32#include "config.h" 33 |
34#include <stddef.h> 35 |
|
34/* 35 * Get next token from string *stringp, where tokens are possibly-empty 36 * strings separated by characters from delim. 37 * 38 * Writes NULs into the string at *stringp to end tokens. 39 * delim need not remain constant from call to call. 40 * On return, *stringp points past the last NUL written (if there might 41 * be further tokens), or is NULL (if there are definitely no more tokens). --- 29 unchanged lines hidden --- | 36/* 37 * Get next token from string *stringp, where tokens are possibly-empty 38 * strings separated by characters from delim. 39 * 40 * Writes NULs into the string at *stringp to end tokens. 41 * delim need not remain constant from call to call. 42 * On return, *stringp points past the last NUL written (if there might 43 * be further tokens), or is NULL (if there are definitely no more tokens). --- 29 unchanged lines hidden --- |