comparison examples/ch1-02.c @ 0:d7da3b1e1540 libtomcrypt

put back the 0.95 makefile which was inadvertently merged over
author Matt Johnston <matt@ucc.asn.au>
date Mon, 31 May 2004 18:21:40 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d7da3b1e1540
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