Re: FSRef_fopen alternative
Re: FSRef_fopen alternative
- Subject: Re: FSRef_fopen alternative
- From: AgentM <email@hidden>
- Date: Mon, 14 Aug 2006 14:05:27 -0400
On Aug 14, 2006, at 13:16 , Jens Ayton wrote:
Edward K. Chew:
Jerry:
Edward K. Chew:
I came across a section in my code where I call FSRef_fopen(),
Use FSRefMakePath and pass the path to fopen.
Well, that sounds like a straightforward way to go, but is it
bullet-proof?
No, it isn't. However, fopen() is a path-based API; if you want to use
fopen() and related APIs, that's the cost. This is what happens
when you
switch the underpinnings of an OS to modern super-duper robust
Unix. :-/
Plus, there is probably a race condition lurking in there...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden