summaryrefslogtreecommitdiff
path: root/src/file.cpp
blob: ba6b78e7ecd0683ccd1626eb843f3e0e348749e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "file.hpp"

#include <string.h>


XiftFile::XiftFile(FILE *file): file(file)
{}

void XiftFile::Put(char c)
{
    fputc(c, file);
}

void XiftFile::Put(const char *str)
{
    fwrite(str, 1, strlen(str), file);
}