9srv Manual Collection/plan9/complete(2) | 9srv Manual Collection/plan9/complete(2) |
---|
ta u
Completion* complete(char *dir, char *s);
void freecompletion(Completion *c);
If no files match the string, nmatch will be zero, but complete will return the full set of files in the directory, with nfile set to their number.
The flag advance reports whether the string s can be extended without changing the set of files that match. If true, string will be set to the extension; that is, the value of string may be appended to s by the caller to extend the embryonic file name unambiguously.
The flag complete reports whether the extended file name uniquely identifies a file. If true, string will be suffixed with a blank, or a slash and a blank, depending on whether the resulting file name identifies a plain file or a directory.
The freecompletion function frees a Completion structure and its contents.
In rio(1) and acme(1), file name completion is triggered by a control-F character or an Insert character.
9srv Manual Collection/plan9/complete(2) | Rev: Sun Dec 02 23:42:20 GMT 2007 |