Is this a pointer? (And if so, how was it initialized?)

前端 未结 4 1288
夕颜
夕颜 2021-01-25 05:43

There\'s a header file, esUtil.h, with a definition for a structure called ESContext, and one of its members is userData. userData is a pointer to void.

The body of a p

4条回答
  •  天涯浪人
    2021-01-25 06:16

    Some where in the code the member userData of ESContext might be initialized with the structure UserData and thats why it is assigned to UserData pointer in DoSomething function.

    It may be a void pointer but still it might hold the address of UserData object

提交回复
热议问题