"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/str2.h" (20 Jan 1999, 838 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


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 "str2.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** str2.h - String to Foo conversion routines.
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    9 **
   10 ** This program is distributed in the hope that it will be useful,
   11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   13 */
   14 
   15 #ifndef PIDENTD_STR2_H
   16 #define PIDENTD_STR2_H
   17 
   18 extern int is_int(const char *p);
   19 
   20 extern int str2int(const char *buf, int *out);
   21 extern int str2str(char *buf, char **out);
   22 extern int str2bool(const char *buf, int *out);
   23 extern int str2port(const char *str, int *out);
   24 extern int str2gid(const char *str, gid_t *out);
   25 extern int str2uid(const char *str, uid_t *uid, gid_t *gid);
   26 
   27 #endif
   28