Query: egd_close
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
EGD_CLOSE(3) EEGDEV library manual EGD_CLOSE(3)NAMEegd_close - close a deviceSYNOPSIS#include <eegdev.h> int egd_close(struct eegdev* dev);DESCRIPTIONegd_close() frees all resources associated to the device referenced by dev and closes it. It stops also implicitely any running acquisi- tion. After a successful call to egd_close(), the reference dev cannot be used any longer.RETURN VALUEThe function returns 0 in case of succes. Otherwise, -1 is returned and errno is set accordingly.ERRORSegd_close() will fail if: EINVAL dev is NULL.EPFL2010 EGD_CLOSE(3)