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

Function ClearMessageList

scripts/Y2K.cpp:149–157  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

147
148// Clear the Message List
149void ClearMessageList(void) {
150 for (int j = 0; j < num_messages; j++) {
151 free(message_list[j]->name);
152 free(message_list[j]->message);
153 free(message_list[j]);
154 message_list[j] = NULL;
155 }
156 num_messages = 0;
157}
158
159// Adds a message to the list
160int AddMessageToList(char *name, char *msg) {

Callers 3

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70
ClearAllMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected