MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ClearMessageList

Function ClearMessageList

scripts/CellTestLevel.cpp:139–147  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

137
138// Clear the Message List
139void ClearMessageList(void) {
140 for (int j = 0; j < num_messages; j++) {
141 free(message_list[j]->name);
142 free(message_list[j]->message);
143 free(message_list[j]);
144 message_list[j] = NULL;
145 }
146 num_messages = 0;
147}
148
149// Adds a message to the list
150int AddMessageToList(char *name, char *msg) {

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected