comparison examples/ch1-02.c @ 3:7faae8f46238 libtomcrypt-orig

Branch renaming
author Matt Johnston <matt@ucc.asn.au>
date Mon, 31 May 2004 18:25:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 3:7faae8f46238
1 /*
2 * Name : ch1-02.c
3 * Purpose : Demonstration of error handling
4 * Author : Tom St Denis
5 *
6 * History : v0.79 Initial release
7 */
8
9 /* ch1-01-1 */
10 #include <mycrypt.h>
11
12 int main(void)
13 {
14 int errno;
15
16 if ((errno = some_func(...)) != CRYPT_OK) {
17 printf("Error: %s\n", error_to_string(errno));
18 return EXIT_FAILURE;
19 }
20
21 return 0;
22 }
23 /*ch1-01-1 */
24
25