projects
/
bcm963xx.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Revert "Revert "and added files""
[bcm963xx.git]
/
userapps
/
opensource
/
sshd
/
libtomcrypt
/
examples
/
ch1-02.c
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