It is there to avoid warnings from the compiler because some parameters are unused.
More Related Contents:
- printf(“%p”) and casting to (void *)
- what is meant by (void *) variable and (void *) & variable in C [closed]
- Can I return a double or float in a function with two integer parameters?
- Can I change the datatype of previously declared variable in C?
- Do I cast the result of malloc?
- casting void** to 2D array of int – C
- “Pointer from integer/integer from pointer without a cast” issues
- Is it better to use C void arguments “void foo(void)” or not “void foo()”? [duplicate]
- Should I explicitly cast malloc()’s return value? [duplicate]
- What does casting to `void` really do? [duplicate]
- Difference between int main() and int main(void)?
- Is the behaviour of casting a negative double to unsigned int defined in the C standard? Different behaviour on ARM vs. x86
- what does it mean to convert int to void* or vice versa?
- Is void a data type in C?
- Are C-structs with the same members types guaranteed to have the same layout in memory?
- in c: func(void) vs. func() [duplicate]
- Mis-aligned pointers on x86
- Casting a pointer does not produce an lvalue. Why?
- Unexpected output of printf
- Dereferencing this pointer gives me -46, but I am not sure why
- Casting one C structure into another
- When an int is cast to a short and truncated, how is the new value determined?
- What are the rules for casting pointers in C?
- Returning from a void function [closed]
- How to cast an integer to void pointer?
- C Function to Convert float to byte array
- What does (void)var actually do?
- pow() cast to integer, unexpected result
- Is typecast required in malloc? [duplicate]
- Can I compare int with size_t directly in C?