C

Asked • 05/29/19

Const pointer in typedef?

What does this line of code do': typedef const real_T * const * InputRealPtrsType; I think it defines `InputRealPtrsType` as a pointer to a constant pointer to a constant `real_T`. `real_T` is essentially a `double`, defined to give some cross platform flexibility. Why would you want to do that? This definition is in the simulink header file simstruc.h for use in C S-functions.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.