HCoop
/
clinton
/
Smoothieware.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
only enable ! and ~ if in grbl mode
[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
}