Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dir 4.14 - How to check pointer to structure
#1
For example:
Code:
typedef struct myStruct{
    int myParam;
} myStruct;

void fcn(myStruct *const ptr)
{
    ptr->myParam = 1;
}

What is the recommended way to check the struct pointer in this function?
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)