Home > Mobile >  What is the programmer-friendly name for "this->that"?
What is the programmer-friendly name for "this->that"?

Time:01-01

Ever have a brain fart while writing up documentation and not recalling what the programmer-friendly name of something is? Well, it is happening to me.

What so we call the "SSL *s" and the "-> recordsizelimit" here in this capture? I though we called "s ->" a member or parent or something and the "recordsizelimit" is a extension or child or something. I created it, I wrote the code, I created the recordsizelimit, I called it elsewhere... but I can't remember the official name of "s" and the value after the ->

Code Snippit

Any thoughts?

CodePudding user response:

In s->recordsizelimit, s is a pointer to a structure (or union). -> does not have a name; the C standard calls it “the -> operator”, except it is parenthetically described in the index as a “minus-greater punctuator” and a “structure/union pointer operator”, but these are used nowhere else in the standard. recordsizelimit is a member name. s->recordsizelimit is a member of a structure.

  • Related