Reentrant zero terminating

I thought some people may find this fork useful like I did...