MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / newCell

Function newCell

dep/adflib/src/adf_util.c:63–78  ·  view source on GitHub ↗

* newCell * * adds a cell at the end the list */

Source from the content-addressed store, hash-verified

61 * adds a cell at the end the list
62 */
63struct 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/*

Callers 4

adfMountHdFunction · 0.85
adfGetDelEntFunction · 0.85
adfGetDirEntCacheFunction · 0.85
adfGetRDirEntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected