vsnprintf.c

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· C语言 代码 · 共 48 行

C
48
字号
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996-2002 *	Sleepycat Software.  All rights reserved. */#include "db_config.h"#ifndef lintstatic const char revid[] = "$Id: vsnprintf.c,v 11.7 2002/01/11 15:51:29 bostic Exp $";#endif /* not lint */#ifndef NO_SYSTEM_INCLUDES#include <sys/types.h>#include <stdio.h>#endif#include "db_int.h"/* * vsnprintf -- *	Bounded version of vsprintf. * * PUBLIC: #ifndef HAVE_VSNPRINTF * PUBLIC: int vsnprintf __P((char *, size_t, const char *, va_list)); * PUBLIC: #endif */#ifndef HAVE_VSNPRINTFintvsnprintf(str, n, fmt, ap)	char *str;	size_t n;	const char *fmt;	va_list ap;{	COMPQUIET(n, 0);#ifdef SPRINTF_RET_CHARPNT	(void)vsprintf(str, fmt, ap);	return (strlen(str));#else	return (vsprintf(str, fmt, ap));#endif}#endif

⌨️ 快捷键说明

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