A89: Re: Re: Re: Re: Re: A C question


[Prev][Next][Index][Thread]

A89: Re: Re: Re: Re: Re: A C question




Thanks for both of the suggestions.  I fixed that last night, however, right
after I posted.

> char *string="         ";  // 9 spaces

Yes, that works also.

>10 should be enough in this case

10 is quite sufficient, for the reasons you pointed out, and that is what I
used.

Anyway, thanks again to all those who responded.  It is always nice to see
others' methods of solving a problem.  Great work, both of you (on the IDE
and the libraries).

--Mike
----- Original Message -----
From: "Sebastian Reichelt" <SebastianR@gmx.de>
To: <assembly-89@lists.ticalc.org>
Sent: Saturday, June 24, 2000 12:44 PM
Subject: A89: Re: Re: Re: Re: A C question


>
> Hi!
>
> | Huh, what you are doing!!? There is no any space allocated for your
> | "string" variable: this will cause a crash!!! You need to do:
> |
> | char string[50];
>
> 10 should be enough in this case, instead of 50.  Functions in ROM are 8
> characters at a maximum, plus the '(', plus the terminating null
character.
> I guess.
>
> | char *string="";
>
> Just out of curiosity, wouldn't
>
> char *string="         ";  // 9 spaces
>
> work?
>
> Bye,
> Sebastian
>
>
>



References: