rommon_var.h
来自「思科路由器仿真器,用来仿7200系列得,可以在电脑上模拟路由器」· C头文件 代码 · 共 42 行
H
42 行
/* * Cisco router simulation platform. * Copyright (c) 2007 Christophe Fillot (cf@utc.fr) * * ROMMON Environment Variables. */#ifndef __ROMMON_VAR_H__#define __ROMMON_VAR_H__/* ROMMON variable */struct rommon_var { struct rommon_var *next; char *name; char *value;};/* List of ROMMON variables */struct rommon_var_list { char *filename; struct rommon_var *var_list;};/* Load file containing ROMMON variables */int rommon_load_file(struct rommon_var_list *rvl);/* Add a new variable */int rommon_var_add(struct rommon_var_list *rvl,char *name,char *value);/* * Add a new variable, specified at the format: var=value. * The string is modified. */int rommon_var_add_str(struct rommon_var_list *rvl,char *str);/* Get the specified variable */int rommon_var_get(struct rommon_var_list *rvl,char *name, char *buffer,size_t len);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?