Prettify
[handlervirt.git] / experiment10.c
blobdf8399f0bebdc2c11bf7662bbbaecc33bb8df3bb
1 #include <string.h>
2 #include <stdio.h>
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);