Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Restituisce il puntatore al SEMD nella ASL la cui chiave è pari a key. Se non esiste un elemento
- con chiave uguale a key, viene restituito NULL. */
- semd_t* getSemd(int key){
- semd_t *semd;
- struct list_head *i;
- if(list_empty(ASL))
- return NULL;
- list_for_each(i, ASL){
- semd = container_of(i, semd_t, s_next);
- if (semd->s_key == key){
- return (semd);
- }
- }
- return NULL;
- }
Add Comment
Please, Sign In to add comment