Last change
on this file since 556 was
510,
checked in by (none), 21 years ago
|
This commit was manufactured by cvs2svn to create branch 'rel-LF'.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.1 KB
|
Line | |
---|
1 | INTEGER FUNCTION lnblnk1 (letter) |
---|
2 | |
---|
3 | C-------------------------------------------------------- |
---|
4 | C Fonction qui determine la longeur d'un string sans les |
---|
5 | C blancs qui suivent. Le critere pour determiner la fin du |
---|
6 | C string est, trois blancs de suite |
---|
7 | C--------------------------------------------------------- |
---|
8 | C ARGUMENTS |
---|
9 | C +++++++++ |
---|
10 | C letter: CHARACTER*xxx (xxx < imax) |
---|
11 | C le string dont on determine la longuer |
---|
12 | C lnblnk1: INTEGER |
---|
13 | C le nombre de characteres |
---|
14 | C |
---|
15 | C PARAMETER |
---|
16 | C +++++++++ |
---|
17 | C imax : INTEGER |
---|
18 | C le nombre maximale de character que peut contenir le string |
---|
19 | C a traiter |
---|
20 | |
---|
21 | IMPLICIT NONE |
---|
22 | INTEGER i,imax |
---|
23 | PARAMETER (imax = 256) |
---|
24 | c CHARACTER*256 letter |
---|
25 | CHARACTER*4 letter |
---|
26 | |
---|
27 | i=0 |
---|
28 | |
---|
29 | 10 i=i+1 |
---|
30 | c IF (letter(i:i+1) . EQ . ' ') THEN |
---|
31 | IF (letter(i:i) . EQ . ' ') THEN |
---|
32 | c print*,'i=',i,'letter(i:i+1)=',letter(i:i+1) |
---|
33 | c print*,'i=',i |
---|
34 | GOTO 20 |
---|
35 | ELSE |
---|
36 | GOTO 10 |
---|
37 | ENDIF |
---|
38 | |
---|
39 | 20 lnblnk1=i-1 |
---|
40 | c PRINT*,'lnblnk1=',lnblnk1 |
---|
41 | |
---|
42 | RETURN |
---|
43 | END |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.