repo.or.cz
/
newos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add new bits to the compiler.h file
[newos.git]
/
apps
/
rldtest
/
shared.c
blob
990de8f2a9cabcb9c076ed6f1a0ea3f08b663072
1
/*
2
** Copyright 2002, Manuel J. Petit. All rights reserved.
3
** Distributed under the terms of the NewOS License.
4
*/
5
6
#include <stdio.h>
7
8
int
fib
(
int
);
9
int
shared_hello
(
void
);
10
11
int
12
fib
(
int
n
)
13
{
14
return
(
n
<
2
)?
1
:
fib
(
n
-
1
)+
fib
(
n
-
2
);
15
}
16
17
int
18
shared_hello
(
void
)
19
{
20
printf
(
"hello from a dynamic shared world
\n
"
);
21
22
return
0
;
23
}