repo.or.cz
/
handlervirt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
SIGTERM again
[handlervirt.git]
/
experiment10.c
blob
df8399f0bebdc2c11bf7662bbbaecc33bb8df3bb
1
#include <string.h>
2
#include <stdio.h>
3
4
int
main
() {
5
/* TODO: terrible hack */
6
char
gateway
[
16
];
7
char
*
temp
;
8
strcpy
(
gateway
,
"192.168.1.1"
);
9
temp
=
strchr
(
gateway
,
'.'
);
10
temp
=
strchr
(++
temp
,
'.'
);
11
temp
=
strchr
(++
temp
,
'.'
);
12
strcpy
(++
temp
,
"254"
);
13
printf
(
"%s"
,
gateway
);
14
}