> Post your croaking code.  You seem to have some misapprehensions about how
> command-line arguments work,
No misapprehensions here.  Just came up blank after an extended round
of web searches.  I was just wondering if I was overlooking something
obvious. (which is known to happen)


> What CLI were you planning to run on iPhone?
The CLI is for a Cocoa App, but I need to call this in both Leopard and iPhone

char  mdfile[PATHSIZE];
strncpy(mdfile, <pathToFile>, MAXREAD);

FILE * stream = fopen(<pathToFile>, "rt");

the rest of the c-code iterates over a rather large text file getting
a line at a time, (fgets(inbuff,MAXREAD,stream)) make some
calculations and then go onto the next line.

So as you can see, a non-escaped, white space laden "pathToFile" will
return a bogus FILE *stream.
-- 
----
Bruce Johnson
[email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to