check the success of memcpy(...)

Is there any way to check if the memcpy(..) operation was successful or not ?

And why wouldn't it work?

The only failure I can concieve of is a trap if one of the addresses is invalid. A try/catch block should take care of that.
memcpy is always successful. The only way it would fail is if there's an access violation (program crash) due to a bad pointer.


AbstractionAnon: I'm pretty sure try/catch won't catch an access violation.
Last edited on
Topic archived. No new replies allowed.