File: err.h

package info (click to toggle)
imx-code-signing-tool 3.4.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,912 kB
  • sloc: ansic: 10,258; sh: 2,558; python: 391; yacc: 245; makefile: 203; lex: 59
file content (39 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
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 */