On Wed, 30 Jun 1999, Ray Olszewski wrote:
> Here are some ideas that might work for you:
>
> 1. To find the first space, use brute force. Something like:
> for ( i = 0 ; i < strlen(teststring) ; i++ )
> {
> if ( teststring[i] == " " )
> break ;
> } ;
Why not just
for(i=0;teststring[i]!=0 && teststring[i]!=' ';i++);
which will do exactly the same thing.
> BTW, linux-newbie doesn't seem like the best place to pose this question ...
> but I don't know where would be. Does anyone else have a suggestion?
I believe there is a C programming list on vger.
>
> At 05:51 PM 6/30/99 EDT, Michael B Golden wrote:
> > I was trying to work on a C program, but I can't figure out how
> >to do some
> >things. What I am looking for is a command in C similar to the mid$
> >command in Visual Basic. i
Frank
(sorry about the cutting. I just hate long mails)
HI! I'm a .signature virus! cp me into your .signature file to help me spread!