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: dk4mkdh.ctr
12 */
13 
14 /**	@file dk4mkdh.c The dk4mkdh module.
15 */
16 
17 
18 #include "dk4conf.h"
19 #include <libdk4c/dk4mkdh.h>
20 
21 #if DK4_CHAR_SIZE > 1
22 #ifndef DK4MKDHW_H_INCLUDED
23 #include <libdk4c/dk4mkdhw.h>
24 #endif
25 #else
26 #ifndef DK4MKDH8_H_INCLUDED
27 #include <libdk4c/dk4mkdh8.h>
28 #endif
29 #endif
30 
31 #if DK4_HAVE_ASSERT_H
32 #ifndef	ASSERT_H_INCLUDED
33 #include <assert.h>
34 #define	ASSERT_H_INCLUDED 1
35 #endif
36 #endif
37 
38 
39 int
dk4mkdir_hierarchy(const dkChar * fn,int lc,dk4_er_t * erp)40 dk4mkdir_hierarchy(const dkChar *fn, int lc, dk4_er_t *erp)
41 {
42 #if	DK4_USE_ASSERT
43   assert(NULL != fn);
44 #endif
45 #if DK4_CHAR_SIZE > 1
46   return (dk4mkdir_hierarchy_wc(fn, lc, erp));
47 #else
48   return (dk4mkdir_hierarchy_c8(fn, lc, erp));
49 #endif
50 }
51 
52