lambda-calc-1/ostream/file/new.c
2025-01-13 20:36:07 -06:00

24 lines
385 B
C

#include <debug.h>
#include "../new.h"
#include "inheritance.h"
#include "struct.h"
#include "new.h"
struct ostream* new_file_ostream(
int fd)
{
ENTER;
struct file_ostream* this = (void*) new_ostream(
/* inheritance: */ &file_ostream_inheritance,
/* alloc size: */ sizeof(*this));
this->fd = fd;
EXIT;
return (void*) this;
}