1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #ifndef _SERVER_FUNCTIONS_H_
#define _SERVER_FUNCTIONS_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "server_resources.h"
struct function_t {
char name[30];
int (*fct_pt)();
};
/****************************************************/
/* FONCTIONS DISPONIBLE */
/****************************************************/
int average(void);
int getmax(void);
int setI(int, int);
int getI(int);
int clear(void);
int size(void);
int sort(void);
struct function_t fmap[] = {{"average",average},
{"getmax",getmax},
{"setI",setI},
{"getI",getI},
{"clear",clear},
{"size",size},
{"sort",sort}};
#endif /* _SERVER_FUNCTIONS_H_ */ |
Partager