xstrings.h revision 2eaa94a1
1/* $XTermId: xstrings.h,v 1.14 2008/12/30 17:10:43 tom Exp $ */ 2 3/* $XFree86: xc/programs/xterm/xstrings.h,v 1.5 2006/02/13 01:14:59 dickey Exp $ */ 4 5/************************************************************ 6 7Copyright 2000-2007,2008 by Thomas E. Dickey 8 9 All Rights Reserved 10 11Permission is hereby granted, free of charge, to any person obtaining a 12copy of this software and associated documentation files (the 13"Software"), to deal in the Software without restriction, including 14without limitation the rights to use, copy, modify, merge, publish, 15distribute, sublicense, and/or sell copies of the Software, and to 16permit persons to whom the Software is furnished to do so, subject to 17the following conditions: 18 19The above copyright notice and this permission notice shall be included 20in all copies or substantial portions of the Software. 21 22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 23OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 25IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 26CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 27TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 28SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 30Except as contained in this notice, the name(s) of the above copyright 31holders shall not be used in advertising or otherwise to promote the 32sale, use or other dealings in this Software without prior written 33authorization. 34 35********************************************************/ 36 37#ifndef included_xstrings_h 38#define included_xstrings_h 1 39 40extern char *x_basename(char * /* name */); 41extern char *x_getenv(const char * /* name */); 42extern char *x_nonempty(char * /* s */); 43extern char *x_skip_blanks(char * /* s */); 44extern char *x_skip_nonblanks(char * /* s */); 45extern char *x_strdup(const char * /* s */); 46extern char *x_strindex(char * /* s1 */, char * /* s2 */); 47extern char *x_strtrim(char * /* s */); 48extern char x_toupper(int /* ch */); 49extern int x_strcasecmp(const char * /* s1 */, const char * /* s2 */); 50extern int x_strncasecmp(const char * /* s1 */, const char * /* s2 */, unsigned /* n */); 51 52#endif /* included_xstrings_h */ 53