Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 | #include |
||
3 | #include |
||
4 | |||
5 | void globfree(glob_t *_pglob) |
||
6 | { |
||
7 | int i; |
||
8 | if (!_pglob->gl_pathv) |
||
9 | return; |
||
10 | for (i=0; i<_pglob->gl_pathc; i++) |
||
11 | if (_pglob->gl_pathv[i]) |
||
12 | free(_pglob->gl_pathv[i]); |
||
13 | free(_pglob->gl_pathv); |
||
14 | } |