📄 gen.hosts.c
字号:
/* * Copyright (C) 1996-1998 by the Board of Trustees * of Leland Stanford Junior University. * * This file is part of the SimOS distribution. * See LICENSE file for terms of the license. * */#include <stdio.h>static char* people[] = { "roy", "", "ben", "", "emmett", "steve","dan", "scott", "john", "robert", "", "radhika", "ed", "mendel", "", "timmy" };#define PERIOD 8#define MAX 128main(int argc, char *argv[]){ int count = 0; while( count < MAX ) { if( *people[count/PERIOD] ) printf("36.132.0.%d %s-%d\n", count, people[count/PERIOD], count%PERIOD ); printf("36.132.0.%d simos-%d\n", count, count ); count++; } printf("36.22.0.195\tmorse\n"); printf("36.8.0.58\tsim\n"); printf("36.222.0.13\ttinderbox\n"); printf("36.222.0.12\tpowderkeg\n");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -