Merge remote-tracking branch 'upstream/edge' into upstreamedge
[clinton/Smoothieware.git] / src / libs / AppendFileStream.cpp
CommitLineData
ba4a0f63 1#include "AppendFileStream.h"
f44d5fa7 2#include <stdio.h>
ba4a0f63 3
f2f0dfed 4int AppendFileStream::puts(const char *str)
ba4a0f63 5{
f2f0dfed 6 FILE *fd= fopen(this->fn, "a");
ba4a0f63
JM
7 if(fd == NULL) return 0;
8
9 int n= fwrite(str, 1, strlen(str), fd);
10 fclose(fd);
11 return n;
12}