Main Page   Compound List   File List   Compound Members   File Members  

pc_libs/pc_message.c

Go to the documentation of this file.
00001 /*=====================================================================
00002                 =======   COPYRIGHT NOTICE   =======
00003 Copyright (C) 1996, Carnegie Mellon University, Cambridge University,
00004 Ronald Rosenfeld and Philip Clarkson.
00005 
00006 All rights reserved.
00007 
00008 This software is made available for research purposes only.  It may be
00009 redistributed freely for this purpose, in full or in part, provided
00010 that this entire copyright notice is included on any copies of this
00011 software and applications and derivations thereof.
00012 
00013 This software is provided on an "as is" basis, without warranty of any
00014 kind, either expressed or implied, as to any matter including, but not
00015 limited to warranty of fitness of purpose, or merchantability, or
00016 results obtained from use of this software.
00017 ======================================================================*/
00018 
00019 
00025 #include <stdio.h>
00026 #include <stdarg.h>
00027  
00028 void pc_message(unsigned short verbosity, 
00029                unsigned short priority, 
00030                char *msg, ...) {
00031 
00032   va_list args ;
00033 
00034   if (priority <= verbosity) {
00035  
00036     va_start(args,msg);
00037     vfprintf(stderr,msg,args) ;
00038     va_end(msg);
00039      
00040   }
00041 
00042 }

Generated on Tue Dec 21 13:54:45 2004 by doxygen1.2.18