Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • @Adrian W. This is valid C. Exact length strings are special cased and NUL is omitted for them. This generally an unwise practice but can be useful in cases like populating header structs that use FourCC "strings". Commented Sep 5, 2019 at 16:47
  • You are right. This is valid C, will compile and behaves as kkaaii described. The reason for the downvotes (not mine...) is probably rather that this answer does not answer OP's question in any way. Commented Sep 6, 2019 at 15:44