is_regular_file()
#
The is_regular_file()
function checks if the given path corresponds to a regular file.
Prototype
BOOL is_regular_file(const char *path);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The file system path to check. |
Return Value
Returns TRUE
if the path corresponds to a regular file, otherwise returns FALSE
.
Notes
[‘This function uses stat()
to determine the file type.’, ‘If stat()
fails, the function returns FALSE
.’]
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples