utils
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | refdes_ |
Defines | |
#define | GRVERSION "24052006" |
#define | COMP_DATE __DATE__ |
#define | COMP_TIME __TIME__ |
#define | MAX_PREFIX_COUNT 50 |
#define | PAGE_JMP 100 |
#define | COUNT_START 0 |
#define | MAX_PREFIX_SIZE 10 |
#define | BUFFSIZE 256 |
#define | FILENAMESIZE 100 |
#define | PAGEJUMP 0x01 |
#define | GAP_DETECTED 0x02 |
#define | OK 0 |
#define | NO_INPUT_FILE 1 |
#define | FILE_OP_ERROR 2 |
#define | PARSE_ERROR 3 |
#define | OUT_OF_MEMORY 4 |
#define | END_OF_FILE 2 |
#define | NOT_REFDES_LINE 3 |
#define | REFDES_WITH_VALUE 0 |
#define | REFDES_WITHOUT_VALUE 1 |
#define | REFDES_ERROR -1 |
#define | REFDES_NOT_FOUND -1 |
#define | VALUE_FOUND 1 |
#define | VALUE_NOT_FOUND 0 |
Functions | |
int | main (int argc, char *argv[]) |
int | get_refdes_from_file (FILE *fp, struct refdes_ *refdes, char *buff) |
int | seek_value (int prefix, FILE *fp, unsigned int value, struct refdes_ *db) |
int | parse_refdes (struct refdes_ *refdes, char *ref_str) |
int | refdes_lookup (struct refdes_ *db, struct refdes_ *ref) |
void | printhelp (void) |
void | printver (void) |
int get_refdes_from_file | ( | FILE * | fp, |
struct refdes_ * | refdes, | ||
char * | buff | ||
) |
int seek_value | ( | int | prefix, |
FILE * | fp, | ||
unsigned int | value, | ||
struct refdes_ * | db | ||
) |
int parse_refdes | ( | struct refdes_ * | refdes, |
char * | ref_str | ||
) |
void printhelp | ( | void | ) |