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

Function Cmd_SetCommandCompletionFunc

code/qcommon/cmd.cpp:636–641  ·  view source on GitHub ↗

============ Cmd_SetCommandCompletionFunc ============ */

Source from the content-addressed store, hash-verified

634============
635*/
636void Cmd_SetCommandCompletionFunc( const char *command, completionFunc_t complete ) {
637 for ( cmd_function_t *cmd=cmd_functions; cmd; cmd=cmd->next ) {
638 if ( !Q_stricmp( command, cmd->name ) )
639 cmd->complete = complete;
640 }
641}
642
643/*
644============

Callers 6

Cmd_InitFunction · 0.70
Cvar_InitFunction · 0.70
Con_InitFunction · 0.50
CL_InitKeyCommandsFunction · 0.50
CL_InitFunction · 0.50
SV_AddOperatorCommandsFunction · 0.50

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected