Re: Alternative COBOL "telco" source program

From: robin (robin_v_at_bigpond.mapson.com)
Date: 05/30/04


Date: Sun, 30 May 2004 16:35:19 GMT

From: "David Frank" <dave_frank@hotmail.com>, RoadRunner - Central Florida
Date: Sun, 30 May 2004 06:56:29 GMT
.
| "L Russ" <lruss@superlink.net> wrote in message news:cfaeadf3.0405291901.250f89e@posting.google.com...
|
| > Does FORTRAN have support for a varying length string? I mean other
| > than that thing that allows functions to be called with different
| > length strings, which isn't the same thing. Wrong group to ask in?
|
| I'm not sure its even part of the new F2003 standard, there is a
| user-developed
| varying length string module avail. that provides support.
| I personally think using c-strings is all thats really needed if strings
| must be
| manipulated while holding on to trailing blanks and have my own simple
| little
| varying string module using c-strings that met challenges presented to
| translate
| various PL/I varying string examples several years back..
.
No it didn't. IIRC your code relied on a zero byte to terminate
the string, thereby making the code data conscious.
I.E., it didn't do the job.
.
...
| > LR



Relevant Pages

  • Re: Different ways of reading numbers in text files - which recommended?
    ... They are written by an old VB6 program, so they will have varying ... then you need to work on each line, if it's fixed column you'd use Mid to ... there are spaces between words in a quoted string. ... are integers, then a floating point number, then a string, etc. ...
    (microsoft.public.vb.general.discussion)
  • Re: Functions that return character strings
    ... but I wanted to note to readers here that one of the fortran gurus has ... the character lengths and arraynesses of a. ... And in reply to the resident Fortran varying strings guru Rich Townsend I ... a string to an array thats allocatable. ...
    (comp.lang.pl1)
  • Re: RETURNS "length"
    ... RETURNSVARYING) will return a VARYING string with max length "whatever" and current length determined by the data specified on the RETURN statement, which sort of fits what the manual says, although they could have been a little clearer. ... Multics PL/I used to allow "RETURNS)" with or without varying, which is not allowed in IBM compilers. ...
    (comp.lang.pl1)
  • Re: Function to remove chars, resize array
    ... declare s character varying; ... PROCEDURE RETURNS VARYING); ... it with a a fixed length character constant or variable? ... and function below uses it to allow pack function to accept a string arg. ...
    (comp.lang.pl1)
  • Re: F2003 and varying strings
    ... >> I would expect a user VGETS function can be easily coded ... A supplementary set of procedures ... My original point was we dont need a supplemental varying string ...
    (comp.lang.fortran)