Last change
on this file since 3114 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 | |
---|
7 | C-------------------------------------------------------- |
---|
8 | C Fonction qui determine la longeur d'un string sans les |
---|
9 | C blancs qui suivent. Le critere pour determiner la fin du |
---|
10 | C string est, trois blancs de suite |
---|
11 | C--------------------------------------------------------- |
---|
12 | C ARGUMENTS |
---|
13 | C +++++++++ |
---|
14 | C letter: CHARACTER*xxx (xxx < imax) |
---|
15 | C le string dont on determine la longuer |
---|
16 | C lnblnk: INTEGER |
---|
17 | C le nombre de characteres |
---|
18 | C |
---|
19 | C PARAMETER |
---|
20 | C +++++++++ |
---|
21 | C imax : INTEGER |
---|
22 | C le nombre maximale de character que peut contenir le string |
---|
23 | C a traiter |
---|
24 | |
---|
25 | IMPLICIT NONE |
---|
26 | INTEGER i,imax |
---|
27 | PARAMETER (imax = 256) |
---|
28 | CHARACTER*256 letter |
---|
29 | |
---|
30 | i=0 |
---|
31 | |
---|
32 | 10 i=i+1 |
---|
33 | IF (letter(i:i+3) . EQ . ' ') GOTO 20 |
---|
34 | GOTO 10 |
---|
35 | |
---|
36 | 20 lnblnk=i-1 |
---|
37 | |
---|
38 | RETURN |
---|
39 | END |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.