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