This function returns thelist_of_files
into thebank_dir
. The size of thelist_of_files
is then written in thenumber_of_files
.If there are more than thenumber_of_files
files in thebank_dir
, a fail status is returned, and thenumber_of_files
is changed to contain the actual number of files in thebank_dir
. A second call to the API is than performed with the actual size for thelist_of_files
.int
STM_CM_get_files_list(
const char *bank_dir,
const char *pattern,
int *number_of_files,
char *list_of_files[],
char error_message[1024])
);Note: Do NOT allow your code to write more than the givennumber_of_files
into thelist_of_files
parameter, or it will cause memory access violations.