Is there any function in UNIX to the convert errno to its corresponding string for e.g. EIDRM to \"EIDRM\". Its very annoying to debug to check for errors with these integer
Just another solution that solves exactly the problem you have, but in Python instead of C:
>>> import errno >>> errno.errorcode[errno.EIDRM] 'EIDRM'