Discussion Locked

character count

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is an accurate and efficent way to count the characters in a variable in fortran?

1 reply

by john_wills

It is a long time since I have written ForTran, but try this. Make the string a Logical*1 array. With a counter starting at 1 count along the array until you find null (zero).

This discussion is closed to new replies.