c++ - Reinterpret cast in c -


i have operation c++ code want convert in c89:

return reinterpret_cast<uint8_t *>(stream.buffer) - buffer;

how can replace reinterpret cast in c?

nothing exciting, you've seen before:

(uint8_t *)(stream.buffer) 

that's way cast in c.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -