Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AppendFileStream.cpp Source File

AppendFileStream.cpp

00001 #include "AppendFileStream.h"
00002 #include "stdio.h"
00003 
00004 int AppendFileStream::puts(const char *str)
00005 {
00006     FILE *fd= fopen(this->fn, "a");
00007     if(fd == NULL) return 0;
00008 
00009     int n= fwrite(str, 1, strlen(str), fd);
00010     fclose(fd);
00011     return n;
00012 }