Re: Parsing challenge to reduce blanks



"David Frank" <dave_frank@xxxxxxxxxxx> wrote in message
news:BPPHe.1990$ns.357@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Is there any "sentinel" character that you dont object to using for a
> "sentinel", how about char(1) ?

Nope. The appropriate solution is an extra LOGICAL array to
hold the result of the test, not trying to store the results
back in the CHARACTER array somehow.

--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


.



Relevant Pages

  • Re: Parsing challenge to reduce blanks
    ... > string already contained your sentinel character, ... You consider NULL a ascii text character so it cant be used as a masking ... Is there any "sentinel" character that you dont object to using for a ... of the trailing blanks, BFD.. ...
    (comp.lang.fortran)
  • Re: Parsing challenge to reduce blanks
    ... The appropriate solution is an extra LOGICAL array to ... It should be their choice what characters they ... embed sentenels in a string unless the value of the sentinel ... self promotion that my solution to the original column counting problem -- of which the blank reduction was just one part -- worked without any of the problems exhibited by the 'short' solutions posted by David & James. ...
    (comp.lang.fortran)
  • Re: Adding a Sentinel
    ... >input as sentinel. ... produce an infinite loop. ... parameter expects a character value instead of a numerical value. ... Given that these are two different datatypes, ...
    (comp.lang.c)