MCPcopy Create free account
hub / github.com/assaultcube/AC / hudecho

Function hudecho

source/src/client.cpp:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256VARP(allowhudechos, 0, 1, 1);
257
258void hudecho(char *text)
259{
260 char *b, *s = strtok_r(text, "\n", &b);
261 void (*outf)(const char *s, ...) = allowhudechos ? hudoutf : conoutf;
262 do
263 {
264 outf("%s", s ? s : "");
265 s = strtok_r(NULL, "\n", &b);
266 }
267 while(s);
268}
269COMMAND(hudecho, "c");
270
271void whereami()

Callers

nothing calls this directly

Calls 1

strtok_rFunction · 0.85

Tested by

no test coverage detected