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

Function BindingIDFromName

code/ui/ui_shared.cpp:6859–6868  ·  view source on GitHub ↗

================= BindingIDFromName ================= */

Source from the content-addressed store, hash-verified

6857=================
6858*/
6859int BindingIDFromName( const char *name ) {
6860 size_t i;
6861
6862 // iterate each command, set its default binding
6863 for ( i = 0; i < g_bindCount; i++ ) {
6864 if ( !Q_stricmp( name, g_bindCommands[i] ) )
6865 return i;
6866 }
6867 return -1;
6868}
6869
6870char g_nameBind[96];
6871

Callers 1

Item_Bind_HandleKeyFunction · 0.70

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected