Mercurial > octave-nkf
view libcruft/ranlib/lennob.f @ 14193:72aebe619641 stable rc-3-6-0-0
3.6.0-rc0 release candidate
* configure.ac (AC_INIT): Version is now 3.6.0-rc0.
(OCTAVE_RELEASE_DATE): Now 2012-01-10.
(OCTAVE_API_VERSION_NUMBER): Now 47.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Jan 2012 16:43:41 -0500 |
parents | 30c606bec7a8 |
children |
line wrap: on
line source
INTEGER FUNCTION lennob(string) IMPLICIT INTEGER (a-p,r-z),LOGICAL (q) C********************************************************************** C C INTEGER FUNCTION LENNOB( STRING ) C LENgth NOt counting trailing Blanks C C C Function C C C Returns the length of STRING up to and including the last C non-blank character. C C C Arguments C C C STRING --> String whose length not counting trailing blanks C is returned. C C********************************************************************** CHARACTER*(*) string end = len(string) DO 20,i = end,1,-1 IF (.NOT. (string(i:i).NE.' ')) GO TO 10 lennob = i RETURN 10 CONTINUE 20 CONTINUE lennob = 0 RETURN END