/* 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: dk4appargs.ctr */ /** @file dk4appargs.c The dk4appargs module. */ #line 11 "dk4appargs.ctr" #include "dk4app.h" #if DK4_HAVE_ASSERT_H #ifndef ASSERT_H_INCLUDED #include #define ASSERT_H_INCLUDED 1 #endif #endif int dk4app_get_argc(dk4_app_t const *app) { int back = 0; #if DK4_USE_ASSERT assert(NULL != app); #endif if (NULL != app) { back = app->my_argc; } return back; } const dkChar * dk4app_get_argv(dk4_app_t const *app, int n) { const dkChar *back = NULL; #if DK4_USE_ASSERT assert(NULL != app); #endif if (NULL != app) { if (n < app->my_argc) { back = (app->my_argv)[n]; } } return back; }