MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Cbuf_AddText

Function Cbuf_AddText

code/qcommon/cmd.cpp:92–104  ·  view source on GitHub ↗

============ Cbuf_AddText Adds command text at the end of the buffer, does NOT add a final \n ============ */

Source from the content-addressed store, hash-verified

90============
91*/
92void Cbuf_AddText( const char *text ) {
93 int l;
94
95 l = strlen (text);
96
97 if (cmd_text.cursize + l >= cmd_text.maxsize)
98 {
99 Com_Printf ("Cbuf_AddText: overflow\n");
100 return;
101 }
102 Com_Memcpy(&cmd_text.data[cmd_text.cursize], text, l);
103 cmd_text.cursize += l;
104}
105
106
107/*

Callers 11

Com_AddStartupCommandsFunction · 0.70
Com_EventLoopFunction · 0.70
Com_InitFunction · 0.70
FS_RestartFunction · 0.70
Cbuf_ExecuteTextFunction · 0.70
WIN_PresentFunction · 0.50
Console_KeyFunction · 0.50
CL_ParseBindingFunction · 0.50
CL_GetServerCommandFunction · 0.50
CL_CgameSystemCallsFunction · 0.50
CL_FirstSnapshotFunction · 0.50

Calls 1

Com_PrintfFunction · 0.70

Tested by

no test coverage detected