Last change
on this file since 3722 was
253,
checked in by (none), 23 years ago
|
This commit was manufactured by cvs2svn to create branch
'rel-1-0-patch'.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
872 bytes
|
Rev | Line | |
---|
[2] | 1 | INTEGER FUNCTION lnblnk (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 lnblnk: 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 | CHARACTER*256 letter |
---|
| 25 | |
---|
| 26 | i=0 |
---|
| 27 | |
---|
| 28 | 10 i=i+1 |
---|
| 29 | IF (letter(i:i+3) . EQ . ' ') GOTO 20 |
---|
| 30 | GOTO 10 |
---|
| 31 | |
---|
| 32 | 20 lnblnk=i-1 |
---|
| 33 | |
---|
| 34 | RETURN |
---|
| 35 | END |
---|
| 36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.