C Standard Library Extensions
1.0.5
|
00001 /* $Id: snprintf.h,v 1.5 2006/06/12 09:54:44 rpalsa Exp $ 00002 * 00003 * This file is part of the ESO C Extension Library 00004 * Copyright (C) 2001-2006 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef CX_SNPRINTF_H 00022 #define CX_SNPRINTF_H 00023 00024 #include <stdarg.h> 00025 00026 /* Just for defining the CX_BEGIN_DECLS and CX_END_DECLS symbols. */ 00027 #include <cxtypes.h> 00028 00029 00030 CX_BEGIN_DECLS 00031 00032 int _p_snprintf(char *str, size_t size, const char *fmt, ...); 00033 int _p_vsnprintf(char *str, size_t size, const char *fmt, va_list args); 00034 00035 CX_END_DECLS 00036 00037 #endif /* CX_SNPRINTF_H */