sys.h

来自「用于嵌入式系统的TCP/IP协议栈」· C头文件 代码 · 共 58 行

H
58
字号
/***********************************************************************//*                                                                     *//*   Module:  sys.h                                                    *//*   Release: 2001.3                                                   *//*   Version: 2001.1                                                   *//*   Purpose: System prototypes and symbol definitions                 *//*                                                                     *//*---------------------------------------------------------------------*//*                                                                     *//*               Copyright 1999, Blunk Microsystems                    *//*                      ALL RIGHTS RESERVED                            *//*                                                                     *//*   Licensees have the non-exclusive right to use, modify, or extract *//*   this computer program for software development at a single site.  *//*   This program may be resold or disseminated in executable format   *//*   only. The source code may not be redistributed or resold.         *//*                                                                     *//***********************************************************************/#ifndef _SYS_H   /* Don't include this file more than once */#define _SYS_H#ifdef __cplusplusextern "C"{#endif#include <assert.h>#include <stdio.h>/***********************************************************************//* Functions related to interactive I/O.                               *//***********************************************************************/int  getCmdStr(char *str, int max_val);int  getCmdKey(void);ui32 getInt(ui32 def_val, ui32 min_val, ui32 max_val);ui32 getHex(ui32 def_val, ui32 min_val, ui32 max_val);ui8  getDigit(ui8 value, ui8 min_val, ui8 max_val);void getIP(ui32 *ip_addrp);void getEth(ui8 *eth_addr);/***********************************************************************//* Password related definitions                                        *//***********************************************************************/typedef struct{  char *username;  char *password;} Secret;extern Secret Secrets[];void *SysPassword(void *username);#ifdef __cplusplus}#endif#endif /* _SYS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?