1*8b42fe33Sdholland /* $NetBSD: extern.h,v 1.11 2013/08/11 00:39:22 dholland Exp $ */ 2a1228f55Sjtc 39acecc03Sglass /*- 4a1228f55Sjtc * Copyright (c) 1991, 1993 5a1228f55Sjtc * The Regents of the University of California. All rights reserved. 69acecc03Sglass * 79acecc03Sglass * Redistribution and use in source and binary forms, with or without 89acecc03Sglass * modification, are permitted provided that the following conditions 99acecc03Sglass * are met: 109acecc03Sglass * 1. Redistributions of source code must retain the above copyright 119acecc03Sglass * notice, this list of conditions and the following disclaimer. 129acecc03Sglass * 2. Redistributions in binary form must reproduce the above copyright 139acecc03Sglass * notice, this list of conditions and the following disclaimer in the 149acecc03Sglass * documentation and/or other materials provided with the distribution. 1589aaa1bbSagc * 3. Neither the name of the University nor the names of its contributors 169acecc03Sglass * may be used to endorse or promote products derived from this software 179acecc03Sglass * without specific prior written permission. 189acecc03Sglass * 199acecc03Sglass * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 209acecc03Sglass * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 219acecc03Sglass * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 229acecc03Sglass * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 239acecc03Sglass * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 249acecc03Sglass * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 259acecc03Sglass * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 269acecc03Sglass * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 279acecc03Sglass * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 289acecc03Sglass * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 299acecc03Sglass * SUCH DAMAGE. 309acecc03Sglass * 31a1228f55Sjtc * @(#)extern.h 8.1 (Berkeley) 6/6/93 329acecc03Sglass */ 339acecc03Sglass 347f7f5495Sdholland struct str; 357f7f5495Sdholland typedef struct str STR; 369acecc03Sglass 379acecc03Sglass #include <limits.h> 389acecc03Sglass #define NCHARS (UCHAR_MAX + 1) /* Number of possible characters. */ 399acecc03Sglass #define OOBCH (UCHAR_MAX + 1) /* Out of band character value. */ 409acecc03Sglass 41*8b42fe33Sdholland STR *str_create(int, const char *); 427f7f5495Sdholland void str_destroy(STR *); 43d05d2aa5Sdholland int next(STR *, int *); 44