ntp_string.h
来自「网络时间协议NTP 源码 版本v4.2.0b 该源码用于linux平台下」· C头文件 代码 · 共 49 行
H
49 行
/* * Define string ops: strchr strrchr memcmp memmove memset */#ifndef _ntp_string_h#define _ntp_string_h#ifdef HAVE_CONFIG_H#include <config.h>#endif#ifdef HAVE_MEMORY_H# include <memory.h>#endif#ifdef HAVE_STRING_H# include <string.h>#endif#ifdef HAVE_BSTRING_H# include <bstring.h>#endif#ifndef STDC_HEADERS# ifndef HAVE_STRCHR# include <strings.h># define strchr index# define strrchr rindex# endif# ifndef __GNUC__char *strchr(), *strrchr();# endif# ifndef HAVE_MEMCPY# define NTP_NEED_BOPS# endif#endif /* STDC_HEADERS */#ifdef NTP_NEED_BOPS# define memcmp(a,b,c) bcmp(a,b,(int)c)# define memmove(t,f,c) bcopy(f,t,(int)c)# define memcpy(t,f,c) bcopy(f,t,(int)c)# define memset(a,x,c) if (x == 0x00) bzero(a,(int)c); else ntp_memset((char*)a,x,c)void ntp_memset P((char *, int, int));#endif /* NTP_NEED_BOPS */#endif /* _ntp_string_h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?