1 /* 2 Copyright (C) 2019-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: dk4chdirw.ctr 12 */ 13 14 #ifndef DK4CHDIRW_H_INCLUDED 15 /** Avoid multiple inclusions. */ 16 #define DK4CHDIRW_H_INCLUDED 1 17 18 19 /** @file dk4chdirw.h Change current working directory. 20 */ 21 22 23 #ifndef DK4CONF_H_INCLUDED 24 #if DK4_BUILDING_DKTOOLS4 25 #include "dk4conf.h" 26 #else 27 #include <dktools-4/dk4conf.h> 28 #endif 29 #endif 30 31 #ifndef DK4ERROR_H_INCLUDED 32 #if DK4_BUILDING_DKTOOLS4 33 #include <libdk4base/dk4error.h> 34 #else 35 #include <dktools-4/dk4error.h> 36 #endif 37 #endif 38 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 43 44 45 /** Change current working directory. 46 @param nd Name of new directory. 47 @param erp Error report, may be NULL. 48 @return 1 on success, 0 on error. 49 50 CRT on Windows: Optional. 51 52 Error codes: 53 - DK4_E_INVALID_ARGUMENTS<br> 54 if nd is NULL, 55 - DK4_E_NOT_SUPPORTEDy<br> 56 if the operation is not supported on the current system, 57 - DK4_E_SYSTEM<br> 58 with error code in lDetails1 or iDetails1 if the operation 59 is supported but did fail. 60 */ 61 62 int 63 64 dk4chdir_wc(const wchar_t *nd, dk4_er_t *erp); 65 66 67 #ifdef __cplusplus 68 } 69 #endif 70 71 72 73 /* vim: set ai sw=4 ts=4 : */ 74 75 76 #endif 77