mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
24 lines
307 B
C
24 lines
307 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
#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;
|
|
}
|