1 /* 2 Copyright (C) 2015-2021, Dirk Krause 3 SPDX-License-Identifier: BSD-3-Clause 4 */ 5 6 /* 7 WARNING: This file was generated by the dkct program (see 8 http://dktools.sourceforge.net/ for details). 9 Changes you make here will be lost if dkct is run again! 10 You should modify the original source and run dkct on it. 11 Original source: dk4delfile.ctr 12 */ 13 14 /** @file dk4delfile.c The dk4delfile module. 15 */ 16 17 18 #include "dk4conf.h" 19 #include <libdk4c/dk4delfile.h> 20 21 #if DK4_CHAR_SIZE > 1 22 #include <libdk4c/dk4delfilewc.h> 23 #else 24 #include <libdk4c/dk4delfile08.h> 25 #endif 26 27 #if DK4_HAVE_ASSERT_H 28 #ifndef ASSERT_H_INCLUDED 29 #include <assert.h> 30 #define ASSERT_H_INCLUDED 1 31 #endif 32 #endif 33 34 35 int dk4delete_file(const dkChar * fn,dk4_er_t * erp)36dk4delete_file(const dkChar *fn, dk4_er_t *erp) 37 { 38 #if DK4_USE_ASSERT 39 assert(NULL != fn); 40 #endif 41 #if DK4_CHAR_SIZE > 1 42 return (dk4delete_file_wc(fn, erp)); 43 #else 44 return (dk4delete_file_c8(fn, erp)); 45 #endif 46 } 47 48