Bruce Johnson wrote:
char mdfile[PATHSIZE];
strncpy(mdfile, , MAXREAD);
FILE * stream = fopen(, "rt");
On further reflection, this code fragment looks very suspicious.
First, a local char buffer of length PATHSIZE is declared. We don't
know what PATHSIZE is.
Second, some unknown variab
Bruce Johnson wrote:
The CLI is for a Cocoa App, but I need to call this in both Leopard
and iPhone
Please explain exactly what you mean by the acronym CLI. None of the
interpretations I'm familiar with fit what you're doing. Or if they
do, you're not explaining how you have a Command
On Thu, May 21, 2009 at 2:26 AM, Bruce Johnson wrote:
> > Post your croaking code. You seem to have some misapprehensions about
> how
> > command-line arguments work,
>
> No misapprehensions here.
Sorry, but I'm afraid there are.
> > What CLI were you planning to run on iPhone?
> The CLI is
On Thu, May 21, 2009 at 1:23 AM, Bruce Johnson wrote:
> I have a unix path in an NSString via [[NSBundle bundleForClass: [self
> class]] pathForResource: etc.. etc..
> The problem is that the path has white spaces scattered in the string.
That's not normally a problem.
> And I need to pass th
On May 20, 2009, at 11:26 PM, Bruce Johnson wrote:
The CLI is for a Cocoa App, but I need to call this in both Leopard
and iPhone
char mdfile[PATHSIZE];
strncpy(mdfile, , MAXREAD);
FILE * stream = fopen(, "rt");
Nothing here is command-line related at all.
the rest of the c-code itera
On 20 May 09, at 23:26, Bruce Johnson wrote:
char mdfile[PATHSIZE];
strncpy(mdfile, , MAXREAD);
FILE * stream = fopen(, "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
> 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 we
Bruce Johnson wrote:
The problem is that the path has white spaces scattered in the string.
And I need to pass the unix path to a CLI application. The CLI app
croaks on the white spaces (for obvious reasons)
Post your croaking code. You seem to have some misapprehensions
about how command
On May 20, 2009, at 10:23 PM, Bruce Johnson wrote:
I have a unix path in an NSString via [[NSBundle bundleForClass: [self
class]] pathForResource: etc.. etc..
The problem is that the path has white spaces scattered in the string.
And I need to pass the unix path to a CLI application. The CLI a
I have a unix path in an NSString via [[NSBundle bundleForClass: [self
class]] pathForResource: etc.. etc..
The problem is that the path has white spaces scattered in the string.
And I need to pass the unix path to a CLI application. The CLI app
croaks on the white spaces (for obvious reasons)
10 matches
Mail list logo