Remove the "eay" c-file-style indicators
[openssl.git] / demos / err / main.c
1 #include <openssl/err.h>
2
3 #include "test_err.h"
4
5 /* Simple error test routine */
6
7 void a_test_function(void)
8 {
9     TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_TEST_REASON_CODE);
10     TESTerr(TEST_F_A_TEST_FUNCTION, TEST_R_ANOTHER_TEST_REASON_CODE);
11     ERR_add_error_data(1, "some additional error data");
12 }
13
14 int main(int argc, char **argv)
15 {
16     ERR_load_TEST_strings();
17     a_test_function();
18     ERR_print_errors_fp(stderr);
19 }