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

Function ClearMessageList

scripts/RudeAwakening.cpp:226–234  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

224
225// Clear the Message List
226void ClearMessageList(void) {
227 for (int j = 0; j < num_messages; j++) {
228 free(message_list[j]->name);
229 free(message_list[j]->message);
230 free(message_list[j]);
231 message_list[j] = NULL;
232 }
233 num_messages = 0;
234}
235
236// Adds a message to the list
237int AddMessageToList(char *name, char *msg) {

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected