feat: Initial commit
This commit is contained in:
23
Laboratorio 8/Esercizio 2/Item.h
Normal file
23
Laboratorio 8/Esercizio 2/Item.h
Normal file
@@ -0,0 +1,23 @@
|
||||
// Laboratorio 8 - Esercizio 2 - Item.h
|
||||
// Matteo Schiff - s295565
|
||||
|
||||
#ifndef ITEM_DEFINED
|
||||
#define ITEM_DEFINED
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define MAX_STR 30
|
||||
|
||||
typedef struct item {
|
||||
char name[MAX_STR+1];
|
||||
char subnet[MAX_STR+1];
|
||||
} Item;
|
||||
|
||||
Item ITEMcreate(char *name, char *subnet);
|
||||
Item ITEMread(FILE * fp);
|
||||
|
||||
Item ITEMnull();
|
||||
|
||||
void ITEMsort(Item *v, int N);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user