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