What does XCloseDisplay return?

▼魔方 西西 提交于 2020-01-15 20:17:51

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/23083523/what-does-xclosedisplay-return

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!