version 1.1, 2004/07/14 03:33:09 |
version 1.2, 2004/07/16 03:08:26 |
|
|
* matching any of the ignore patterns. The number of files found is |
* matching any of the ignore patterns. The number of files found is |
* returned in <nfiles>. |
* returned in <nfiles>. |
* Returns a pointer to a dynamically-allocated string vector on success, |
* Returns a pointer to a dynamically-allocated string vector on success, |
* or NULL on failure. |
* or NULL on failure. The returned vector should be freed with |
|
* cvs_freeargv(). |
*/ |
*/ |
|
|
char** |
char** |
|
|
(void)close(fd); |
(void)close(fd); |
|
|
return (fvec); |
return (fvec); |
} |
|
|
|
|
|
/* |
|
* cvs_file_freev() |
|
* |
|
* Free a file vector obtained with cvs_file_getv(). |
|
*/ |
|
|
|
void |
|
cvs_file_freev(char **fvec, int nfiles) |
|
{ |
|
int i; |
|
|
|
for (i = 0; i < nfiles; i++) |
|
free(fvec[i]); |
|
free(fvec); |
|
} |
} |