basic_exception.cc
Upload User: psq1974
Upload Date: 2007-01-06
Package Size: 1195k
Code Size: 1k
Category:

mpeg mp3

Development Platform:

C/C++

  1. /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
  2.    Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
  3.    Software license is located in file "COPYING"
  4. */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include "basic_exception.h"
  8. void BasicException::init( const char *format, ... )
  9. {
  10.   va_list ap;
  11.   va_start( ap, format );
  12.   init( format, ap );
  13.   va_end( ap );
  14. }
  15. void BasicException::init( const char *format, va_list ap )
  16. {
  17.   char buf[1024];
  18.   vsnprintf( buf, sizeof( buf ), format, ap );
  19.   
  20.   text = buf;
  21. }