Commit 96c681e2 authored by Max Kellermann's avatar Max Kellermann

dirvec: added dirvec_clear()

parent 476578d2
...@@ -16,6 +16,12 @@ int dirvec_delete(struct dirvec *dv, struct directory *del); ...@@ -16,6 +16,12 @@ int dirvec_delete(struct dirvec *dv, struct directory *del);
void dirvec_add(struct dirvec *dv, struct directory *add); void dirvec_add(struct dirvec *dv, struct directory *add);
static inline void
dirvec_clear(struct dirvec *dv)
{
dv->nr = 0;
}
void dirvec_destroy(struct dirvec *dv); void dirvec_destroy(struct dirvec *dv);
#endif /* DIRVEC_H */ #endif /* DIRVEC_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment