Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
Diff: libs/AppendFileStream.h
- Revision:
- 2:1df0b61d3b5a
- Child:
- 3:f151d08d335c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libs/AppendFileStream.h Fri Feb 28 18:52:52 2014 -0800 @@ -0,0 +1,18 @@ +#ifndef _APPENDFILESTREAM_H_ +#define _APPENDFILESTREAM_H_ + +#include "StreamOutput.h" +#include "string.h" +#include "stdlib.h" + +class AppendFileStream : public StreamOutput { + public: + AppendFileStream(const char *filename) { fn= strdup(filename); } + virtual ~AppendFileStream(){ free(fn); } + int puts(const char*); + + private: + char *fn; +}; + +#endif