I ran into literature that suggests creating a temporary directory using mkstemp(3). I think the idea is to create a random path that is unlikely to be duplicated. The documentation on mkstemp is unclear to me. How do you use it to create a temp directory in iOS? mkstemp takes an unsafe mutable pointer as an argument and returns and Int32. I have no idea what to do with those in the context of file system management.
Any help on this will be appreciated.