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

Function ClearMessageList

scripts/barney.cpp:137–145  ·  view source on GitHub ↗

Clear the Message List

Source from the content-addressed store, hash-verified

135
136// Clear the Message List
137void ClearMessageList(void) {
138 for (int j = 0; j < num_messages; j++) {
139 free(message_list[j]->name);
140 free(message_list[j]->message);
141 free(message_list[j]);
142 message_list[j] = NULL;
143 }
144 num_messages = 0;
145}
146
147// Adds a message to the list
148int AddMessageToList(char *name, char *msg) {

Callers 2

ReadMessageFileFunction · 0.70
ShutdownDLLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected