* newCell * * adds a cell at the end the list */
| 61 | * adds a cell at the end the list |
| 62 | */ |
| 63 | struct List* newCell(struct List* list, void* content) |
| 64 | { |
| 65 | struct List* cell; |
| 66 | |
| 67 | cell=(struct List*)malloc(sizeof(struct List)); |
| 68 | if (!cell) { |
| 69 | (*adfEnv.eFct)("newCell : malloc"); |
| 70 | return NULL; |
| 71 | } |
| 72 | cell->content = content; |
| 73 | cell->next = cell->subdir = 0; |
| 74 | if (list!=NULL) |
| 75 | list->next = cell; |
| 76 | |
| 77 | return cell; |
| 78 | } |
| 79 | |
| 80 | |
| 81 | /* |
no outgoing calls
no test coverage detected