9 #define DEFAULT_DEV "/dev/flink0"
11 int main(
int argc,
char* argv[]) {
17 while((c = getopt(argc, argv,
"d:")) != -1) {
23 if(optopt ==
'd') fprintf(stderr,
"Option -%c requires an argument.\n", optopt);
24 else if(isprint(optopt)) fprintf (stderr,
"Unknown option `-%c'.\n", optopt);
25 else fprintf(stderr,
"Unknown option character `\\x%x'.\n", optopt);
32 printf(
"Opening device %s...\n", dev_name);
35 printf(
"Failed to open device!\n");
39 printf(
"Closing device %s...\n", dev_name);
flink_dev * flink_open(const char *file_name)
Opens a flink device file.
int flink_close(flink_dev *dev)
Close an open flink device.
int main(int argc, char *argv[])