home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / sources / DeskLib / !DLSources / OtherLibs / Debugs / c / stderr < prev    next >
Encoding:
Text File  |  1995-07-10  |  1.0 KB  |  47 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Debug1.c.Debug1
  12.     Author:  Julian Smith
  13.     Version: 0.00 (04 Jun 1995)
  14.     Purpose: Provides a set of Debug_ function which send stuff to stderr
  15. */
  16.  
  17.  
  18. #include <stdarg.h>
  19. #include <stdio.h>
  20.  
  21. #include "DeskLib:Debug.h"
  22.  
  23.  
  24. void    Debug_Initialise( void)
  25. {
  26. /* We're only a simple library...    */
  27. }
  28.  
  29.  
  30. int    Debug_Printf( const char *format, ...)
  31. {
  32. va_list    va;
  33. int    i;
  34. va_start(va, format);
  35. i = vfprintf( stderr, format, va);
  36. va_end(va);
  37. return i;
  38. }
  39.  
  40.  
  41. void    Debug_Print( const char *text)
  42. {
  43. fputs( text, stderr);
  44. }
  45.  
  46.  
  47.