Lengthness
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 240992 articles for 0.162 sec
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: James Parsly
Date: Sep 11, 2008 07:52

.... You can only free stuff from the top of the stack down; no cutting holes in the middle. But that's okay for the way this calculation works. To pass a workspace array of length 100 to a subroutine, you do temp = nextavail nextavail = nextavail+100 ! requests allocation call checkstorage(nextavail) !checks to make you've not overflowed call workroutine(x(temp)) ! passes ...
Show full article (1.99Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: Gary Scott
Date: Sep 10, 2008 18:56

.... You can only free stuff from the top of the stack down; no cutting holes in the middle. But that's okay for the way this calculation works. To pass a workspace array of length 100 to a subroutine, you do temp = nextavail nextavail = nextavail+100 ! requests allocation call checkstorage(nextavail) !checks to make you've not overflowed call workroutine(x(temp)) ! passes ...
Show full article (1.99Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: George McBane
Date: Sep 10, 2008 18:20

.... You can only free stuff from the top of the stack down; no cutting holes in the middle. But that's okay for the way this calculation works. To pass a workspace array of length 100 to a subroutine, you do temp = nextavail nextavail = nextavail+100 ! requests allocation call checkstorage(nextavail) !checks to make you've not overflowed call workroutine(x(temp)) ! passes array address ...
Show full article (1.48Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: nospam
Date: Sep 10, 2008 17:07

...are likely implemented. A derived type with a length component and a string content component? ... dynamically allocated body and an indication of the length. For an allocatable string standing alone, that'...particular structural relationship between the pointer and the length. Now if the allocatable string is a ...type will have to have that pointer and length data; as to whether it also has ...
Show full article (2.17Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: Sjouke Burry
Date: Sep 10, 2008 15:59

...>>> want the returned string's length to be dynamic and equal to ...can live with increasing the default length of string from 1,000 characters...> continues beyond my starting string length (10,000). Is there a way...input file is less than the length of the string used in ...> kind of limitation regarding the length of a line in an ... input file has random line length, there is only one solution,...
Show full article (2.69Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: nospam
Date: Sep 10, 2008 15:09

... buffers. I can live with increasing the default length of string from 1,000 characters to say 10,... if a line continues beyond my starting string length (10,000). Is there a way to check whether ... read from the input file is less than the length of the string used in the reading process ...always have some kind of limitation regarding the length of a line in an input file? Yes....
Show full article (2.34Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: Ragu
Date: Sep 10, 2008 14:54

... want the returned string's length to be dynamic and equal to the actual length of the line in the input file (...can live with increasing the default length of string from 1,000 characters...line continues beyond my starting string length (10,000). Is there a way...input file is less than the length of the string used in the...some kind of limitation regarding the length of a line in an ...
Show full article (2.43Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: GaryScott
Date: Sep 10, 2008 14:38

... really needs f2003 is dynamic allocation of the length of a character string. In f2003, that's... straightforward. You just make the character allocatable length and use an allocate statement (or an ...). But f95 doesn't have allocatable character length, and that doesn't appear to be one ... likely implemented. A derived type with a length component and a string content component? Anything ...
Show full article (0.94Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: nospam
Date: Sep 10, 2008 14:20

... You just make the character allocatable length and use an allocate statement (or... of nextline to just the "right" length. Whatever is returned by nextline will ... as needed to fit the declared length of some_char_variable, and you'll have .... Now if some_char_variable has allocatable length, things are different, but that's...hack around the lack of allocatable-length character strings by using an ...
Show full article (4.31Kb) · Show article thread
Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Lengthness in comp.lang.fortran
Author: Ragu
Date: Sep 10, 2008 13:20

...I want the returned string’s length to be dynamic and equal to the actual length of the line in the input file (...:: outstring ! -- Local variables integer :: n, length ! -- Copy input string outstring = inpstring ... n /= 0 ) then outstring( n:length ) = ' ' endif end function nof90cmts !------------------------------------------------------------------------------- Thanks....
Show full article (3.15Kb)
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next