0
static const cmdinfo_t quit_cmd = {
.name       = "quit",
.altname    = "q",
.cfunc      = quit_f,
.argmin     = -1,
.argmax     = -1,
.flags      = CMD_FLAG_GLOBAL,
.oneline    = "exit the program",
};

Hi there, while I checking some C code examples I find this statement , I cant able understand this

Is it a String(Array) or struct or Function or what it is ? how does it work ? what does it do ?

Some may found this more basic but i really dont know the name or method of this code to google , someone help me out

Thank you

Ganapathy
  • 1
  • 1

1 Answers1

0

It's a struct initialised using designated initialisers

Janne Husberg
  • 294
  • 1
  • 9