سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top