complete.h 562 B

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