Lines Matching refs:n_files
200 size_t n_files; member
345 size_t n_files = 0; in tinydir_open() local
352 n_files++; in tinydir_open()
365 dir->n_files = 0; in tinydir_open()
366 dir->_files = (tinydir_file *)_TINYDIR_MALLOC(sizeof *dir->_files * n_files); in tinydir_open()
374 dir->n_files++; in tinydir_open()
376 p_file = &dir->_files[dir->n_files - 1]; in tinydir_open()
389 if (dir->n_files == n_files) in tinydir_open()
395 qsort(dir->_files, dir->n_files, sizeof(tinydir_file), _tinydir_file_cmp); in tinydir_open()
414 dir->n_files = 0; in tinydir_open()
586 if (i >= dir->n_files) in tinydir_open()
607 if (i >= dir->n_files || !dir->_files[i].is_dir) in tinydir_open()