benilla-re systems structs docs

ParseCommand

function · console · primitive

Address
0x63f880 · 300 bytes, up to 0x63f9ab
Signature
CONSOLECOMMAND * __fastcall (const char *line, const char **name, const char **rest)
Meaning
Splits a line into its first word and the rest and returns the command of that name, or 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
console/commands#parsing-a-line

Finding: Parsing a line in console: commands

0x63f880 splits a line. The first word, up to 63 bytes ending at a space or the end, is copied to the static buffer 0xc4ee08; spaces after it are skipped; the pointer to the rest goes to the second out-parameter. It then returns the command with that name, or 0. A character is copied whole by its decoded width, and a word of 64 bytes or more stops at the buffer limit. A tab does not end the word.

The derivation is in the doc.

Callers 1

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.