GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
lennob.f
Go to the documentation of this file.
1 INTEGER*4 FUNCTION lennob(string)
2 IMPLICIT INTEGER*4 (a-p,r-z),logical(q)
3C**********************************************************************
4C
5C INTEGER*4 FUNCTION LENNOB( STRING )
6C LENgth NOt counting trailing Blanks
7C
8C
9C Function
10C
11C
12C Returns the length of STRING up to and including the last
13C non-blank character.
14C
15C
16C Arguments
17C
18C
19C STRING --> String whose length not counting trailing blanks
20C is returned.
21C
22C**********************************************************************
23 CHARACTER*(*) string
24
25 end = len(string)
26 DO 20,i = end,1,-1
27 IF (.NOT. (string(i:i).NE.' ')) GO TO 10
28 lennob = i
29 RETURN
30
31 10 CONTINUE
32 20 CONTINUE
33 lennob = 0
34 RETURN
35
36 END
integer *4 function lennob(string)
Definition lennob.f:2