repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
alsa.audio: add debug logs
[AROS.git]
/
test
/
clib
/
exit.c
blob
97f0ee5d37d941fd9b66370a2993ef2f61fc895b
1
/*
2
Copyright © 2013-2014, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <stdio.h>
7
#include <stdlib.h>
8
9
#include <aros/debug.h>
10
11
static unsigned int
level
=
0
;
12
13
int
main
(
void
)
14
{
15
bug
(
"Nest level: %u
\n
"
, ++
level
);
16
17
if
(
level
<
20
)
18
main
();
19
20
bug
(
"About to call exit()...
\n
"
);
21
22
exit
(
0
);
23
24
bug
(
"exit() did not work!
\n
"
);
25
return
20
;
26
}