- Timestamp:
- 04/03/14 01:25:40 (11 years ago)
- Location:
- cpp/frams/virtfile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/virtfile/stringfile.cpp
r204 r207 43 43 } 44 44 45 int StringFILE::Vprintf(const char *format, va_list args)46 {47 char *buf=str.directAppend(10000);48 vsnprintf(buf,10000,format,args);49 int n=strlen(buf); // todo: strlen moze wyjsc poza siebie jezeli printf nie da 0S50 str.endAppend(n);51 return n;52 }53 54 45 int StringFILE::Vseek(long offset, int whence) 55 46 { -
cpp/frams/virtfile/stringfile.h
r204 r207 23 23 int Vgetc(); 24 24 char *Vgets(char *s, int size); 25 int Vprintf(const char *format, va_list args);26 25 int Vseek(long offset, int whence); 27 26 int Vtell() {return pos;} 28 void Vrewind() {pos=0;}29 27 int Vflush() {return 0;} 30 28 };
Note: See TracChangeset
for help on using the changeset viewer.