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

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

libs/AppendFileStream.cpp

Committer:
Bigcheese
Date:
2014-03-02
Revision:
3:f151d08d335c
Parent:
2:1df0b61d3b5a

File content as of revision 3:f151d08d335c:

#include "AppendFileStream.h"
#include "stdio.h"

int AppendFileStream::puts(const char *str)
{
    FILE *fd= fopen(this->fn, "a");
    if(fd == NULL) return 0;

    int n= fwrite(str, 1, strlen(str), fd);
    fclose(fd);
    return n;
}