"Fossies" - the Fresh Open Source Software Archive

Member "gamgi0.17.5x/src/io/gamgi_io_token.h" (23 Feb 2022, 2533 Bytes) of package /linux/misc/gamgi-all-0.17.5x.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.

    1 /*******************************************
    2  *
    3  * $GAMGI/src/io/gamgi_io_token.h
    4  *
    5  * Copyright (C) 2001, 2004 Carlos Pereira
    6  *
    7  * Distributed under the terms of the GNU
    8  * General Public License: $GAMGI/LICENSE
    9  *
   10  */
   11 
   12 /**********************
   13  * external functions *
   14  **********************/
   15 
   16 void gamgi_io_token_cut (const char *string, char *token, int length);
   17 
   18 void gamgi_io_token_clean (const char *string, char *token);
   19 
   20 void gamgi_io_token_lower (const char *token, char *lower);
   21 
   22 gamgi_bool gamgi_io_token_size_check (const char *token, int length);
   23 
   24 gamgi_bool gamgi_io_token_check (const char *string);
   25 
   26 gamgi_bool gamgi_io_token_alpha_check (const char *token, 
   27 const char *valid, const int length);
   28 
   29 void gamgi_io_token_bool_get (const char *token, gamgi_bool *bool);
   30 
   31 void gamgi_io_token_long_get (const char *token, long *integer);
   32 
   33 void gamgi_io_token_int_get (const char *token, int *integer);
   34 
   35 void gamgi_io_token_double_get (const char *token, double *real);
   36 
   37 void gamgi_io_token_float_get (const char *token, float *real);
   38 
   39 gamgi_bool gamgi_io_token_long_get_check (const char *token, 
   40 long *integer, const long min, const long max);
   41 
   42 gamgi_bool gamgi_io_token_int_get_check (const char *token,
   43 int *integer, const int min, const int max);
   44 
   45 gamgi_bool gamgi_io_token_double_get_check (const char *token, 
   46 double *real, const double min, const double max);
   47 
   48 gamgi_bool gamgi_io_token_float_get_check (const char *token,
   49 float *real, const float min, const float max);
   50 
   51 gamgi_bool gamgi_io_token_alpha_scan (const char *string, 
   52 char *alpha, const char *valid, const int length);
   53 
   54 gamgi_bool gamgi_io_token_bool_scan (const char *string, gamgi_bool *bool);
   55 
   56 gamgi_bool gamgi_io_token_long_scan (const char *string, 
   57 long *integer, const long min, const long max);
   58 
   59 gamgi_bool gamgi_io_token_int_scan (const char *string,
   60 int *integer, const int min, const int max);
   61 
   62 gamgi_bool gamgi_io_token_double_scan (const char *string, 
   63 double *real, const double min, const double max);
   64 
   65 gamgi_bool gamgi_io_token_float_scan (const char *string,
   66 float *real, const float min, const float max);
   67 
   68 gamgi_bool gamgi_io_token_alpha_long_scan (const char *string, 
   69 char *alpha, long *integer, const int length, 
   70 const long min, const long max);
   71 
   72 void gamgi_io_token_remove (char **new);
   73 
   74 void gamgi_io_token_create (const char *old, char **new);
   75 
   76 gamgi_bool gamgi_io_token_check_create (const char *old, char **new, const int max);
   77 
   78 /*************
   79  * Rationale *
   80  *************
   81 
   82 
   83 
   84  *************
   85  * Rationale *
   86  *************/