Blob


1 /*
2 #pragma lib "libcomplete.a"
3 #pragma src "/sys/src/libcomplete"
4 */
6 typedef struct Completion Completion;
8 struct Completion{
9 uchar advance; /* whether forward progress has been made */
10 uchar complete; /* whether the completion now represents a file or directory */
11 char *string; /* the string to advance, suffixed " " or "/" for file or directory */
12 int nmatch; /* number of files that matched */
13 int nfile; /* number of files returned */
14 char **filename; /* their names */
15 };
17 Completion* complete(char *dir, char *s);
18 void freecompletion(Completion*);