/* Copyright (C) 2015-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk4fne08.ctr */ #ifndef DK4FNE08_H_INCLUDED /** Avoid multiple inclusions. */ #define DK4FNE08_H_INCLUDED 1 #line 10 "dk4fne08.ctr" /** @file File name expander. CRT on Windows: Optional. */ #ifndef DK4CONF_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4conf.h" #else #include #endif #endif #ifndef DK4DIR08_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4dir08.h" #else #include #endif #endif #ifdef __cplusplus extern "C" { #endif /** Expand a file name. @param pattern File name pattern, may optionally include a directory part. @param erp Error report, may be NULL. @return Directory structure on success, NULL on error. On success the path component in the returned directory structure is NULL if the pattern did not contain a directory part. Error codes: - DK4_E_INVALID_ARGUMENTS
if path is NULL, - DK4_E_NOT_SUPPORTED
if no function to traverse directories was found during build process or the function is called on a non-Windows system, - DK4_E_MEMORY_ALLOCATION_FAILED
if a memory allocation failed, - DK4_E_MATH_OVERFLOW
if a mathematical overflow occured in a size calculation, - DK4_E_BUFFER_TOO_SMALL
if one of the involved directory or file names is too long for an internal buffer, - DK4_E_OPENDIR_FAILED
with errno value in iDetails1 if the attempt to open the directory failed, - DK4_E_FINDFIRSTFILE_FAILED
with GetLastError() value in lDetails1 if the FindFirstFile() function failed on Windows, - DK4_E_SYSTEM
if the stat() or lstat() function failed for one of the directory items. */ dk4_dir_c8_t * dk4fne_open_c8(const char *pattern, dk4_er_t *erp); #ifdef __cplusplus } #endif #endif