title: Is memcpy() unsafe in Mac OS X?
body: <p>I know there is a great deal of discussion about how memcpy() is unsafe in the Windows/Microsoft world, but does that apply to Mac OS X code as well (Cocoa)? If so, what function should be used in Cocoa for maximum safety? memcpy_s() doesn't seem to be present on the platform.</p>
  
  <p>Thanks.</p>
  
  <p>Update: I realize speaking about memcpy() even in windows is sort of a gray area (see <a href="https://stackoverflow.com/questions/870019/memcpy-in-secure-programming">Memcpy() in secure programming?</a>), but I am trying to discover whether this same exact discussion applies to Mac OS X or not. Just the fact that Mac OS X does't include a 'secure' version of memcpy() seems to imply Apple feels that things aren't that bad.</p>