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

Function ClearMessageList

scripts/merc5.cpp:1024–1032  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

1022
1023// Clear the Message List
1024void ClearMessageList(void) {
1025 for (int j = 0; j < num_messages; j++) {
1026 free(message_list[j]->name);
1027 free(message_list[j]->message);
1028 free(message_list[j]);
1029 message_list[j] = NULL;
1030 }
1031 num_messages = 0;
1032}
1033
1034// Adds a message to the list
1035int AddMessageToList(char *name, char *msg) {

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected