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

Function ClearMessageList

scripts/level13.cpp:1328–1336  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

1326
1327// Clear the Message List
1328void ClearMessageList(void) {
1329 for (int j = 0; j < num_messages; j++) {
1330 free(message_list[j]->name);
1331 free(message_list[j]->message);
1332 free(message_list[j]);
1333 message_list[j] = NULL;
1334 }
1335 num_messages = 0;
1336}
1337
1338// Adds a message to the list
1339int AddMessageToList(char *name, char *msg) {

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected