prg_dir_contents()

Abstract

Obtain a listing of all the directory names and filenames contained within the indicated directory.

Syntax

prg_dir_contents (directory_path_name)
Argument Type Description
directory_path_name const char * Path of the directory of interest

Return Type

PrgT_List *

New list of allocated strings that are the names of files and directories in the indicated directory.

prg_file_funcs.h

Details

Return value will be a newly allocated PrgT_List of allocated strings. You, the caller, must call prg_list_free () and then prg_mem_free () on this list when you are done using it. The directory names of "." and ".." will not be present in this list.

The pathname passed to function should be a valid directory.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com