xonecas.io
7814
Ta

tiny-c-agent / files

tiny-c-agent / src / tui / complete.h

430 bytes
1// tiny TUI completion: path completion and the shared prefix helper.
2
3#ifndef TINY_TUI_COMPLETE_H
4#define TINY_TUI_COMPLETE_H
5
6// Case-sensitive longest common prefix. Both inputs must be non-NULL.
7char *tiny_common_prefix(const char *a, const char *b);
8
9// Completes `word` as a file path. Returns malloc'd text, or NULL when there is
10// nothing more to add.
11char *tiny_complete_path(const char *word, const char *cwd);
12
13#endif