Vorrei sapere se ho svolto le seguenti operazioni con i vettori, per favore.
in particolare la funzione init_window.
Grazie
Codice PHP:
typedef struct {
char data[DATALENGTH];
int nseq;
}packet;
typedef struct {
packet window[WINDOWSIZE];
packet* head, *tail;
}window_wrapper;
void init_window(window_wrapper* w){ //inzializza head e tail al primo elemento
w->head = &w->window[0];
w->tail = &w->window[0];
}