I'm trying to create a buffer to be filled by sprintf() in order to convert an unsigned long to a string:
From the documentation, I'm having trouble deciding if this is the correct size for the buffer:
Did I understand digits correctly?Code:char buff[numeric_limits<unsigned long>::digits + 1];