/* Copyright (C) 2016-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: dk4svbufa.ctr */ /** @file dk4svbufa.c The dk4svbufa module. */ #line 72 "dk4svbufa.ctr" #include "dk4conf.h" #include "dk4svbufa.h" #if DK4_HAVE_ASSERT_H #ifndef ASSERT_H_INCLUDED #include #define ASSERT_H_INCLUDED 1 #endif #endif #line 86 "dk4svbufa.ctr" int dk4setvbuf_app( FILE *fipo, dk4_file_buffering_t btype, char *pbuf, size_t szbuf, const dkChar *fn, dk4_app_t *app ) { dk4_er_t er; int back = 0; int ll = DK4_LL_ERROR; #if DK4_USE_ASSERT assert(NULL != fipo); #endif if (NULL != fipo) { dk4error_init(&er); back = dk4setvbuf(fipo, btype, pbuf, szbuf, &er); if (DK4_E_NONE != er.ec) { if (0 != back) { ll = DK4_LL_WARNING; } if (NULL != fn) { dk4app_log_base3(app, ll, 156, 157, fn); } else { dk4app_log_base1(app, ll, 155); } if (DK4_E_NOT_SUPPORTED == er.ec) { dk4app_log_base1(app, ll, 158); } } } return back; } /* vim: set ai sw=4 ts=4 : */