⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utils.h

📁 台湾大学的一个mgcp 协议的实现源码,对研究mgcp协议很有帮助!
💻 H
字号:
/* 
 * Copyright (C) 1999-2000 Computer & Communications Research Laboratories,
 *				           Industrial Technology Research Institute
 * Copyright Telcordia Technologies 1999
 */
/*
 * utils.h
 */

#ifndef MGCUTILS_H
#define MGCUTILS_H

#include "mgcplib.h"

#define mgcMAXFIELD 100

#ifdef  __cplusplus
extern "C" {
#endif

/* Copy characters from src to dst, return number copied, dst[n]
 * until the first not in good 
 */
int mgcCpySpn(char* dst, char* src, char* good, int n);

/* Copy characters from src to dst, return number copied, dst[n] 
 * until the first in bad 
 */
int mgcCpyCSpn(char* dst, char* src, char* bad, int n);

/* remove whitespace from beginning and end of p, moving characters forward
 * returns p
 */
MGCP_API char* trimWS(char*p);

/* return string rep of integer i
 * string is in static memory, so it must be copied before another is
 * converted
 */
char* i2a(int i);

/*
 * attach string src to string dst
 */
char* stratt(char*dst,char*src);

#if defined(WIN32)&&!defined(bzero)
#define bzero(s, n)	memset(s, 0, n)
#endif

#ifdef  __cplusplus
}
#endif

#endif /* MGCUTILS_H */

⌨️ 快捷键说明

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