Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the meaning of VOID() in C

Tags:

c

semantics

void

what's the meaning of VOID()

There are the following C code, but what's it's meaning?

VOID(pthread_mutex_init(&tina_mutex,MY_MUTEX_INIT_FAST));
like image 494
mysql guy Avatar asked Nov 20 '25 08:11

mysql guy


1 Answers

Looks like a preprocessor macro. Your editor should be able to find what it is. Or try

gcc -E source.c > source2.c

It runs the preprocessor only and replaces macros with what they really evaluate to.

like image 104
M.K. Avatar answered Nov 21 '25 23:11

M.K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!