24 lines
385 B
C
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;
|
|
}
|
|
|