EMILE/libfloppy/floppy_open.c

24 lines
303 B
C
Raw Normal View History

2005-11-21 21:50:49 +00:00
/*
*
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-21 21:50:49 +00:00
*
*/
#include <stdlib.h>
#include "libfloppy.h"
floppy_device_t *floppy_open(int unit)
{
floppy_device_t *dev;
dev = (floppy_device_t *)malloc(sizeof(floppy_device_t));
if (dev == NULL)
return NULL;
dev->unit = unit;
return dev;
}