emulator/io5/allocation.c
io5_conv_t *io5_conv_allocate(io5_mode_t from, io5_mode_t to) {
  io5_conv_t *e = malloc(sizeof(io5_conv_t));
  if (NULL == e) {
    return NULL;
  }
  memset(e, 0, sizeof(io5_conv_t));

  e->from = from;
  e->to = to;
  return e;
}
// allocate an io stream instance not connected to any file
// returns NULL if cannot allocate memory
allocate an io stream instance not connected to any file
returns NULL if cannot allocate memory
allocate an io stream instance not connected to any file returns NULL if cannot allocate memory
io5_conv_t *io5_conv_allocate(io5_mode_t from, io5_mode_t to) {
  io5_conv_t *e = malloc(sizeof(io5_conv_t));
  if (NULL == e) {
    return NULL;
  }
  memset(e, 0, sizeof(io5_conv_t));
  e->from = from;
  e->to = to;
  return e;
}
io5_conv_t * io5_conv_allocate ( io5_mode_t from , io5_mode_t to ) { io5_conv_t * e = malloc ( sizeof ( io5_conv_t ) ) ; if ( NULL == e ) { return NULL ; } memset ( e , 0 , sizeof ( io5_conv_t ) ) ; e -> from = from ; e -> to = to ; return e ; }
allocate an io stream instance not connected to any file
returns NULL if cannot allocate memory
allocate an io stream instance not connected to any file returns NULL if cannot allocate memory