projet-systeme-exploitation.../à zipper/jobs.h

25 lines
402 B
C
Raw Normal View History

2021-05-10 13:49:14 +00:00
#ifndef __JOBS_H
#define __JOBS_H
typedef struct cell cell;
struct cell
{
int id;
int pid;
char *cmd;
cell *next;
};
typedef cell *list;
void initialiser(list *list);
void liberer(list *list);
void afficher(cell **list);
int ajouter(cell **list, int pid, char **cmd);
void supprimer(cell **list, int pid);
cell *trouver(list *l_ptr, int pid);
cell *trouver_id(list *l_ptr, int id);
#endif