my structs are:
Code:
typedef struct Graph *graph;
typedef struct Graph{
Porta x;
int **adj;
}Graph;
typedef struct No *no;
typedef struct _No{
char *name;
char value;
}No;
typedef struct _portaLogica{
float delayTime;
no **input;
no *output;
char *function;
int num_inputs;
}Porta;
The file is something like :
inputs
...
.....
outputs
.....
.....
nor delayTime output num_inputs input1 input2 input-n
nand delayTime output num_inputs input1 input2 input-n
.....
......
.....
/* well its a logic simulator so u see nand, nor .. etc */