|
|
|
|
|
by sligor
1754 days ago
|
|
Not an array, a struct is ok, and in C99 style it is very well readable. For example Linux Kernel style is: static const struct file_operations fops = {
.open = my_open,
.release = my_release,
.read = my_read,
.write = my_write
};
that's all, very straightforward. Also there is no need to prefix the function name with & |
|