home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rpos2101.zip / PARSE.H < prev    next >
C/C++ Source or Header  |  1998-07-02  |  2KB  |  58 lines

  1. #ifndef _PARSE_H_
  2. #define _PARSE_H_
  3.  
  4. /*
  5.  * FILE: parse.h
  6.  * DESC: Header file for parse.c
  7.  * VERS: 1.2
  8.  * COPY: Copyright 1998 Rob Linwood (auntfloyd@biosys.net)
  9.  * XREF: parse.c
  10.  */
  11.  
  12.    /**********************************************************************
  13.     Parse.c - Text Parsing and Searching Library
  14.     Copyright 1998 Rob Linwood
  15.  
  16.     This program is free software; you can redistribute it and/or modify
  17.     it under the terms of the GNU General Public License as published by
  18.     the Free Software Foundation; either version 2 of the License, or
  19.     (at your option) any later version.
  20.  
  21.     This program is distributed in the hope that it will be useful,
  22.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.     GNU General Public License for more details.
  25.  
  26.     You should have received a copy of the GNU General Public License
  27.     along with this program; if not, write to the Free Software
  28.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29.     **********************************************************************/
  30.  
  31. #ifdef __cplusplus
  32. extern "C"
  33. {
  34. #endif
  35.  
  36.  
  37.  
  38. #define wspace(x, y) neither( x, ' ', '\t', y )
  39.  
  40. /* Functions in parse.c */
  41. extern int firstnot( char *d, const char e, char first );
  42. extern int neither( char *d, const char e, const char f, char first );
  43. extern int find( char *d, char *e, int first );
  44. extern int parse( char *d, int i, char *c );
  45. extern int numstr( char *d );
  46. extern char *rtrim( char *str );
  47. extern int rws( char *str);
  48. extern char *scopy( char *dest, char *src, int index, int count );
  49. extern int ws( char *str );
  50. extern char *ltrim( char *str );
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56.  
  57. #endif /* ifndef _PARSE_H_ */
  58.