Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

The CL Corner: Just How Big Is That Variable?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • The CL Corner: Just How Big Is That Variable?

    ** This thread discusses the article: The CL Corner: Just How Big Is That Variable? **
    ** This thread discusses the Content article: The CL Corner: Just How Big Is That Variable? **
    0

  • #2
    Re:The CL Corner: Just How Big Is That Variable?

    ** This thread discusses the article: The CL Corner: Just How Big Is That Variable? **
    Hi, Carel You are correct about the first parameter not really being returned by the CPP. The command definition is however correct. It is because the first parameter is defined as being a return value, and of varying length, that the CPP is passed the allocated length of the first parameter in the first 4-bytes of the first parameter. This allocated length value is then simply copied to the value of the second parameter and then returned. If the first parameter were to be defined as not being a return value, and of varying length, then the CPP would be passed not the allocated length of the parameter but rather the length of the blank trimmed value of the parameter. By toggling the return value definition you can either determine the allocated size of the first variable (as in the article) or determine the length of the value assigned to the first variable. I hope this helps, Bruce

    Comment

    Working...
    X