Back to index

tetex-bin  3.0
my-snprintf.h
Go to the documentation of this file.
00001 /*------------------------------------------------------------
00002 
00003 Permission is hereby granted, free of charge, to any person obtaining a copy
00004 of this software and associated documentation files (the "Software"), to
00005 deal in the Software without restriction, including without limitation the
00006 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00007 sell copies of the Software, and to permit persons to whom the Software is
00008 furnished to do so, subject to the following conditions:
00009 
00010 The above copyright notice and this permission notice shall be included in
00011 all copies or substantial portions of the Software.
00012 
00013 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00014 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00015 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00016 IN NO EVENT SHALL PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE
00017 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
00018 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00019 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00020 ------------------------------------------------------------*/
00021 
00022 #ifndef MY_SNPRINTF_H_
00023 #define MY_SNPRINTF_H_
00024 
00025 #ifdef HAVE_SNPRINTF
00026 
00027 #define SNPRINTF snprintf
00028 
00029 #else
00030 
00031 #define SNPRINTF my_snprintf
00032 int SNPRINTF(char *str, size_t size, const  char  *format, ...);
00033 
00034 #endif /* HAVE_SNPRINTF */
00035 #endif /* MY_VSNPRINTF_H_ */
00036