libkemo-m104: M104_close





SYNOPSIS

       #include <M104.h>  -lkemo-m104
       int M104_close(const char *port, ...);


DESCRIPTION

       The M104_close function closes the specified  channels  on
       the M104 device, attached to the specified port parameter.
       The port parameter is a string naming  the  parallel  port
       the device is attached to. The values can be:
        "lp0", "lp1" or "lp2"
       The  channels  are  given as digits in the NULL terminated
       list.
       The channels values are in the range 1,..., 4.
       M104_ALL can also be used as a shorthand for all channels.
       The  channels  to  be closed will be added as long as they
       are in the valid range.



RETURN VALUE

       Upon successful completion M104_close returns  0.   Other­
       wise,  -1 is returned, the global variable errno is set to
       indicate the error and an error message is issued to  sys­
       log at LOG_PID and LOG_ERR facilities



SEE ALSO

        M104_check(3) M104_open(3) M104_reset(3)
        syslog(3)  perror(3)


AUTHOR

       Lionel, trollhunter Bouchpan-Lerust-Juery
       <trollhunter@linuxfr.org>



M104_close(3)                2002 Jan               M104_close(3)

Man(1) output converted with man2html