MCPcopy Create free account
hub / github.com/IBM/Project_CodeNet / token_buf_close

Function token_buf_close

tools/tokenizer/libtoken.c:490–494  ·  view source on GitHub ↗

Adds a terminating NUL character which does not change the token length.

Source from the content-addressed store, hash-verified

488
489// Adds a terminating NUL character which does not change the token length.
490static void token_buf_close(void)
491{
492 token_buf_room();
493 token_buf[token_len] = '\0'; // Note: no advance
494}
495
496// Resets the token buffer cursor.
497static void token_buf_reset(void)

Callers 1

C_tokenize_intFunction · 0.85

Calls 1

token_buf_roomFunction · 0.85

Tested by

no test coverage detected