Re: Parsing challenge to reduce blanks




"James Van Buskirk" <not_valid@xxxxxxxxxxx> wrote in message
news:AuadnSzA2pHaJnLfRVn-rA@xxxxxxxxxxxxxx
>
> Well, yes, I didn't make that particular mistake. If the input
> string already contained your sentinel character, the output
> would not, so it would be incorrect.
>

You consider NULL a ascii text character so it cant be used as a masking
char?
Is there any "sentinel" character that you dont object to using for a
"sentinel", how about char(1) ?

>> Didnt you say your solution has a problem with exact size text in line?
>
> As does yours.
>

OK, I see what you are complaining about, the first blank in the trailing
blanks returned is just part
of the trailing blanks, BFD.. I guess we dont agree its a problem that must
be addressed.


.



Relevant Pages

  • 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)
  • Re: Parsing challenge to reduce blanks
    ... > Is there any "sentinel" character that you dont object to using for a ... The appropriate solution is an extra LOGICAL array to ... back in the CHARACTER array somehow. ...
    (comp.lang.fortran)
  • Re: SV: DFSORting a varaible rec.length file and delete duplicaties - HOW ?
    ... character) ought not be treated as identical. ... of trailing blanks or any other character other than binary zeros ... AAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ ...
    (bit.listserv.ibm-main)
  • Re: text processing
    ... In strict F77 you'll need to write a function that looks for the last ... non-blank character in the string and use that length to manipulate the ... length of the string minus the trailing blanks. ...
    (comp.lang.fortran)
  • Re: reading exact contents of a line
    ... I know that you can define a CHARACTER variable with a large ... > of those trailing blanks are actually in the file. ... > end program xreadline ... Read a line character by character and save it in a string ...
    (comp.lang.fortran)