Parsing challenge to reduce blanks
- From: "David Frank" <dave_frank@xxxxxxxxxxx>
- Date: Mon, 01 Aug 2005 19:01:33 GMT
Heres a challenge thats O.T. in another topic and IMO deserves its own
topic.
Challenge:
Create a function that accepts a text line and returns a same length text
output line
but with no blank fields > 1 char in length.
! -----------------------------------------
function reduce_blanks(line) result(outline)
character(*) :: line
character(len(line)) :: outline
my 3 executable statements will be posted tomorrow, anyone know what they
might look like?
JVB claims he has a 2 statement solution but hasnt posted it..
end function
.
- Follow-Ups:
- BEST ROUTINE
- From: NuclearWizard
- Re: Parsing challenge to reduce blanks
- From: David Frank
- Re: Parsing challenge to reduce blanks
- From: Rich Townsend
- BEST ROUTINE
- Prev by Date: Re: iso_varying_string in f2003?
- Next by Date: Re: iso_varying_string in f2003?
- Previous by thread: how to define a dummy argument derived-Type array?thanks
- Next by thread: Re: Parsing challenge to reduce blanks
- Index(es):
Relevant Pages
|