diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-01-14 18:08:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-01-14 18:08:39 +0000 |
commit | 1b34f889f90cd879367f233c90d98b18dd47d338 (patch) | |
tree | 10025d8103bff429ccfdac18a70158996ba05c7f /src/std.c | |
parent | 94fea1e00bc2115cb9163d53a0d5b25a88d35898 (diff) |
initial commit
git-svn-id: file:///home/lennart/svn/public/bidilink/trunk@3 9cde1c1d-e4d0-0310-8a68-bf217395ea82
Diffstat (limited to 'src/std.c')
-rw-r--r-- | src/std.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/std.c b/src/std.c new file mode 100644 index 0000000..b0cc8a9 --- /dev/null +++ b/src/std.c @@ -0,0 +1,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; +} |