Sponsored Content
Full Discussion: while ..until
Top Forums Programming while ..until Post 29084 by hewlet on Monday 30th of September 2002 04:55:27 AM
Old 09-30-2002
Re: Re: OR

Totally I agree with Perderabo's opion.

But if the original value of chr is pointing to ' ' or '<', then
his answer will loss it because he uses do...while structure.

I think while structure is better.

This is my answer:
while ( *chr && *chr != ' ' && *char != '<'){
chr--;
}

I hope it be right.
 
All times are GMT -4. The time now is 08:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy