| NanoGoner (26) | |
|
can someone tell me the difference between this declaration and the function useage: void *cube_updater(void *); // in header file cube_updater ( void *rs232_cube) // in main.c | |
|
|
|
| vlad from moscow (3662) | |
|
The first one is a correct function declaration. The second one shall not be compiled. That is the difference.:) EDIT: maybe in the second case the record should be cube_updater ( ( void * )rs232_cube); | |
|
Last edited on
|
|
| NanoGoner (26) | |
|
I changed the function usage to cube_updater((void*)rs232_cube) That resolved part of the problem, but the following error was left, the syntax of which I don't understand; main.c LINE 92 error: expected declaration specifiers or ‘...’ before ‘(’ token| ||=== Build finished: 1 errors, 1 warnings ===| Line 92 reads: cube_updater ( (void *)rs232_cube) // as modified per viad from moscow | |
|
|
|
| vlad from moscow (3662) | |
| I see that there is no semicolon after the statement. Also it is not clear whether the original code contained the function declaration or the function call as I thought. | |
|
|
|