Mail Archives: djgpp/1999/04/27/07:00:53
> On Mon, 26 Apr 1999 fiammy AT my-dejanews DOT com wrote:
>
> > I want to use the characters in a string separately, so I thought I just use
> > the string as an array of characters, but DJGPP gives me problems. When I
add
> > the nuber of the character to the string, I just get garbage, what do I have
> > to do to be able to use the characters in a loop that processes one at a
> > time?
>
> Consider to always post some example code when you ask such questions.
> Otherwise, there's high risk that people won't even understand what you
> are trying to accomplish, let alone what your problems are.
>
Well, consider this :
char *string;
void main (void)
{
int i;
for (i=; i=lengthof(string); i++)
{
dosomething with string[i];
}
I can't do that, the compiler gives me an error.
How should I declare the string?
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
- Raw text -