summaryrefslogtreecommitdiffstats
path: root/src/std.c
blob: b0cc8a9e36d02ab8bd18031e1e854709aa298cb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdlib.h>
#include <assert.h>
#include <string.h>

#include "std.h"

struct stream* stream_std(const char *args) {
    struct stream *s;

    s = malloc(sizeof(struct stream));
    assert(s);
    memset(s, 0, sizeof(struct stream));

    s->input_fd = 0;
    s->output_fd = 1;

    return s;
}