#include #include #include #include main(argc,argv) int argc; char **argv; { int fd; if ( argc > 1 ) fd = open(argv[1],O_RDONLY ); else fd = open("/dev/midi",O_RDONLY ); ioctl(fd,MIDIRESET,0); close(fd); }