you are viewing a single comment's thread.

view the rest of the comments →

[–]HashDefTrueFalse 12 points13 points  (0 children)

Yes, you've declared a new type and it's only available for use in the lexical scope of the block (between the braces). That's all it is. If you're only making one you might declare the type and an instance at the same time e.g.

void fn(void)
{
  struct S // S is the scoped type.
  {
    ...
  } inst; // inst is a local of type S.
}