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