source: LMDZ4/tags/pre_parallel/libf/bibio/lnblnk.F @ 1398

Last change on this file since 1398 was 1070, checked in by Laurent Fairhead, 16 years ago

test

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 889 bytes
Line 
1!
2!
3! $Header$
4!
5      INTEGER FUNCTION lnblnk (letter)
6
7C--------------------------------------------------------
8C Fonction qui determine la longeur d'un string sans les
9C blancs qui suivent. Le critere pour determiner la fin du
10C string est, trois blancs de suite
11C---------------------------------------------------------
12C     ARGUMENTS
13C     +++++++++
14C     letter: CHARACTER*xxx (xxx < imax)
15C             le string dont on determine la longuer
16C     lnblnk: INTEGER
17C             le nombre de characteres
18C
19C     PARAMETER
20C     +++++++++
21C     imax : INTEGER
22C            le nombre maximale de character que peut contenir le string
23C            a traiter
24
25      IMPLICIT NONE
26      INTEGER i,imax
27      PARAMETER (imax = 256)
28      CHARACTER*256 letter
29
30      i=0
31
3210    i=i+1
33      IF (letter(i:i+3) . EQ . '   ') GOTO 20
34      GOTO 10
35
3620    lnblnk=i-1
37
38      RETURN
39      END
40
Note: See TracBrowser for help on using the repository browser.