File: egd_close.3

package info (click to toggle)
eegdev 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,972 kB
  • sloc: ansic: 32,259; sh: 10,941; makefile: 247; lex: 128; yacc: 118
file content (27 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.\"Copyright 2010 (c) EPFL
.TH EGD_CLOSE 3 2010 "EPFL" "EEGDEV library manual"
.SH NAME
egd_close - close a device
.SH SYNOPSIS
.LP
.B #include <eegdev.h>
.sp
.BI "int egd_close(struct eegdev* " dev ");"
.br
.SH DESCRIPTION
.LP
\fBegd_close\fP() frees all resources associated to the device referenced by
\fIdev\fP and closes it. It stops also implicitely any running acquisition.
.LP
After a successful call to \fBegd_close\fP(), the reference \fIdev\fP cannot
be used any longer.
.SH "RETURN VALUE"
.LP
The function returns 0 in case of succes. Otherwise, \-1 is returned and
\fIerrno\fP is set accordingly.
.SH ERRORS
.LP
\fBegd_close\fP() will fail if:
.TP
.B EINVAL
\fIdev\fP is NULL.