t_nm2type *rd_nm2type(const char *ffdir, int *nnm) { std::vector<std::string> ff = fflib_search_file_end(ffdir, ".n2t", FALSE); *nnm = 0; t_nm2type *nm = nullptr; for (const auto &filename : ff) { rd_nm2type_file(filename, nnm, &nm); } return nm; }
t_nm2type *rd_nm2type(const char *ffdir,int *nnm) { int nff,f; char **ff; t_nm2type *nm; nff = fflib_search_file_end(ffdir,".n2t",FALSE,&ff); *nnm = 0; nm = NULL; for(f=0; f<nff; f++) { rd_nm2type_file(ff[f],nnm,&nm); sfree(ff[f]); } sfree(ff); return nm; }