Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does XCloseDisplay return?

Tags:

xorg

xlib

I can see from various documentations that XCloseDisplay returns an integer, which I suspect to be an error code.

What should I do with this value? Is it an error code? If so how do I handle the error?

like image 666
Jeroen Avatar asked Apr 12 '26 05:04

Jeroen


1 Answers

I looked in the source code (lib/X11/ClDisplay.c)

It says:

return 0;

So there's nothing you can really do with the return value.

like image 98
parkydr Avatar answered Apr 26 '26 02:04

parkydr



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!