/* deez parser */ #ifndef DEEZ_PARSER_PRS #include #include /* example for usage: */ /* (lixo = ":af=/var/spool/lpd/lp1/acct::lp=/dev/null:") */ /* copy_specific_block(lixo, "teste", 0, lixo2); */ /* 0 - the first block, returns null if block doesn't exist */ int copy_specific_block(char *full_text, char *particle_to_trap, int block_number, char *output_string); /* example for usage: */ /* parse_string_data(":af=/var/spool/lpd/lp1/acct::lp=/dev/null:","af=", ":", lixo); */ /* output_string must have at least the same size as given_string */ char *parse_string_data(char *given_string, char *particle_to_trap, char *stringend_markers_given, char *output_string); /* example for usage: */ /* parse_integer_data(":af=/var/spool/lpd/lp1/acct::lp=/dev/null:","lp", &my_integer); */ /* returns true is ok, otherwise false */ int parse_integer_data(char *given_string, char *particle_to_trap, int *output_integer); #define DEEZ_PARSER_PRS #endif