1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright 2018-2019, 2023 NXP
*/
#ifndef ERR_H
#define ERR_H
/*===========================================================================*/
/**
@file err.h
@brief Error logging interface
*/
/*===========================================================================
FUNCTION PROTOTYPES
=============================================================================*/
#ifdef __cplusplus
extern "C" {
#endif
/** Display error message
*
* Displays error message to STDOUT and exits the program
*
* @param[in] err Error string to display to the user
*
* @pre @a err is not NULL
*
* @post Program exits with exit code 1.
*/
void
error(const char *err, ...);
#ifdef __cplusplus
}
#endif
#endif /* ERR_H */
|