dirvec: added dirvec_clear()
This commit is contained in:
parent
476578d2a9
commit
96c681e2db
@ -16,6 +16,12 @@ int dirvec_delete(struct dirvec *dv, struct directory *del);
|
||||
|
||||
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);
|
||||
|
||||
#endif /* DIRVEC_H */
|
||||
|
Loading…
Reference in New Issue
Block a user