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

Function ClearMessageList

scripts/myPowerHouse.cpp:146–154  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

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

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected