Ignore:
Timestamp:
04/03/14 01:24:30 (11 years ago)
Author:
Maciej Komosinski
Message:

VirtFILE base class provides Vprintf, Vgetc, Vputc, Vrewind, so that subclasses do not have to implement these functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/virtfile/virtfile.cpp

    r197 r206  
    44
    55#include "virtfile.h"
     6#include <common/stl-util.h>
    67
    78VirtFILE *VirtFILE::Vstdin=0;
     
    3031
    3132void VirtFILE::selectFileSystem(VirtFileSystem *s) {vfs=s;}
     33
     34int VirtFILE::Vprintf(const char *format, va_list args)
     35{
     36string s=ssprintf_va(format,args);
     37return Vwrite(s.c_str(),1,s.size());
     38}
    3239
    3340int VirtFILE::printf(const char *format, ...)
Note: See TracChangeset for help on using the changeset viewer.