home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / topware / partlogic / partlogic-0.57-iso.exe / partlogic-0.57.iso / system / headers / stdarg.h < prev    next >
C/C++ Source or Header  |  2005-08-29  |  1KB  |  42 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2005 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  stdarg.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file stdarg.h
  23.  
  24. #if !defined(_STDARG_H)
  25.  
  26. #include <stddef.h>
  27.  
  28. typedef void * va_list;
  29.  
  30. #define va_start(list, lastpar) (list = &lastpar)
  31. #define va_arg(list, type) *((type *)(list += sizeof(int)))
  32. #define va_end(list) (list = NULL)
  33.  
  34. // Unimplemented routines
  35. int vprintf(const char *format, va_list ap);
  36. //int vfprintf(FILE *stream, const char *format, va_list ap);
  37. int vsprintf(char *str, const char *format, va_list ap);
  38. int vsnprintf(char *str, size_t size, const char *format, va_list ap);
  39.  
  40. #define _STDARG_H
  41. #endif
  42.