static-storage

Why no memory leak?

The following is designed to take a variable length constant char and print it out in a nice format for logging. I am certain readers will have suggestions on how this can be improved, and I'd welcome it. What puzzles me is that I expected it would be necessary to free() the returned static char each time ToHexString() is called. Inst...