NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3ai24.f
Go to the documentation of this file.
1C> @file
2C> @brief Test for match of two strings.
3C> @author Luke Lin @date 1994-08-31
4
5C> Test two strings. If all equal; Otherwise .false.
6C>
7C> Program history log:
8C> - Luke Lin 1994-08-31
9C>
10C> @param[in] STRING1 Character array to match with string2
11C> @param[in] STRING2 Character array to match with string1
12C> @param[in] LENGTH Integer length of string1 and string2
13C> @return W3AI24 Logical .true. if s1 and s2 match on all char.,
14C> logical .false. if not match on any char.
15C>
16C> @author Luke Lin @date 1994-08-31
17 LOGICAL FUNCTION w3ai24(STRING1, STRING2,LENGTH)
18C
19 CHARACTER*1 string1(*)
20 CHARACTER*1 string2(*)
21 INTEGER*4 length
22C
23 w3ai24 = .true.
24C
25 DO 10 i = 1,length
26 IF (string1(i).NE.string2(i)) GO TO 40
27 10 CONTINUE
28C
29 RETURN
30C
31 40 CONTINUE
32 w3ai24 = .false.
33 RETURN
34C
35 END
logical function w3ai24(string1, string2, length)
Test two strings.
Definition w3ai24.f:18