repositories
/
sws1-1415.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ass5a2a
[sws1-1415.git]
/
ass5a
/
mart
/
sws1-assignment5-s4109503-s4202015
/
exercise2a.c
1
#include <stdio.h>
2
3
void
function_b
(
void
)
4
{
5
char
buffer
[
4
];
6
char
*
p
=
buffer
;
7
while
(*(
int
*)++
p
!= (
int
)
0xa0b1c2d3
);
8
while
(
p
>
buffer
)
9
*
p
-- =
0
;
10
fprintf
(
stdout
,
"Executing function_b
\n
"
);
11
}
12
void
function_a
(
void
)
13
{
14
int
beacon
=
0xa0b1c2d3
;
15
fprintf
(
stdout
,
"Executing function_a
\n
"
);
16
function_b
();
17
fprintf
(
stdout
,
"Executed function_b
\n
"
);
18
}
19
20
int
main
(
void
) {
21
function_a
();
22
fprintf
(
stdout
,
"Finished!
\n
"
);
23
return
0
;
24
}