SyntaxFix
Write A Post
Hire A Developer
Questions
You can store the size somewhere, or you can have a struct with a special value set that you use as a sentinel, the same way that '\0' indicates the end of a string.