all repos — xrxs @ e85bf2c4e5f8c3c2d6e58ea0c8283a78f4b783a7

experimental networked application/game server with 9p

aux.c (raw)

1
2
3
4
5
6
7
8
9
10
11
12
#include <u.h>
#include <libc.h>
#include "aux.h"

Aux* create_aux(FileType t) {
  Aux* self = (Aux*)malloc(sizeof(Aux));
  self->type = t;
  self->data = nil;
  self->count = 0;

  return self;
}