We are working together on an Embedded Linux project with C and C ++. I recently came across a strange expression in a function:
bool StrangeFunction(void* arg1, void* arg2, void* arg3)
{
(void)arg1;
(void)arg2;
(void)arg3;
unsigned long keycode = (unsigned long)arg2;
switch(keycode)
{
...
I have two questions in the code above
- What does it mean
(void)arg1;? - Is it possible to use OK
unsigned long keycode = (unsigned long)arg2;
If you don't mind, I need an explanation and links explaining the topics. Thank.
source
share