"Fossies" - the Fresh Open Source Software Archive

Member "xterm-379/xstrings.h" (22 Dec 2016, 3056 Bytes) of package /linux/misc/xterm-379.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "xstrings.h" see the Fossies "Dox" file reference documentation.

    1 /* $XTermId: xstrings.h,v 1.30 2016/12/22 23:48:38 tom Exp $ */
    2 
    3 /*
    4  * Copyright 2000-2015,2016 by Thomas E. Dickey
    5  *
    6  *                         All Rights Reserved
    7  *
    8  * Permission is hereby granted, free of charge, to any person obtaining a
    9  * copy of this software and associated documentation files (the
   10  * "Software"), to deal in the Software without restriction, including
   11  * without limitation the rights to use, copy, modify, merge, publish,
   12  * distribute, sublicense, and/or sell copies of the Software, and to
   13  * permit persons to whom the Software is furnished to do so, subject to
   14  * the following conditions:
   15  *
   16  * The above copyright notice and this permission notice shall be included
   17  * in all copies or substantial portions of the Software.
   18  *
   19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
   20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   22  * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
   23  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   24  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   25  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   26  *
   27  * Except as contained in this notice, the name(s) of the above copyright
   28  * holders shall not be used in advertising or otherwise to promote the
   29  * sale, use or other dealings in this Software without prior written
   30  * authorization.
   31  */
   32 
   33 #ifndef included_xstrings_h
   34 #define included_xstrings_h 1
   35 /* *INDENT-OFF* */
   36 
   37 #include <X11/Intrinsic.h>
   38 #include <pwd.h>
   39 
   40 #define OkPasswd(p) ((p)->pw_name != 0 && (p)->pw_name[0] != 0)
   41 
   42 extern Boolean x_getpwnam(const char * /* name */, struct passwd * /* result */);
   43 extern Boolean x_getpwuid(uid_t /* uid */, struct passwd * /* result */);
   44 extern String x_nonempty(String /* s */);
   45 extern String x_skip_blanks(String /* s */);
   46 extern String x_skip_nonblanks(String /* s */);
   47 extern char **x_splitargs(const char * /* command */);
   48 extern char *x_basename(char * /* name */);
   49 extern char *x_decode_hex(const char * /* source */, const char ** /* next */);
   50 extern char *x_encode_hex(const char * /* source */);
   51 extern char *x_getenv(const char * /* name */);
   52 extern char *x_getlogin(uid_t /* uid */, struct passwd * /* in_out */);
   53 extern char *x_strdup(const char * /* s */);
   54 extern char *x_strindex(char * /* s1 */, const char * /* s2 */);
   55 extern char *x_strtrim(const char * /* s */);
   56 extern char *x_strrtrim(const char * /* s */);
   57 extern char x_toupper(int /* ch */);
   58 extern int x_hex2int(int /* ch */);
   59 extern int x_strcasecmp(const char * /* s1 */, const char * /* s2 */);
   60 extern int x_strncasecmp(const char * /* s1 */, const char * /* s2 */, unsigned  /* n */);
   61 extern int x_wildstrcmp(const char * /* pattern */, const char * /* actual */);
   62 extern unsigned x_countargv(char ** /* argv */);
   63 extern void x_appendargv(char ** /* target */, char ** /* source */);
   64 extern void x_freeargs(char ** /* argv */);
   65 
   66 /* *INDENT-ON* */
   67 
   68 #endif /* included_xstrings_h */