Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Empty-string/Fortran/empty-string.f
Normal file
11
Task/Empty-string/Fortran/empty-string.f
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
SUBROUTINE TASTE(T)
|
||||
CHARACTER*(*) T !This form allows for any size.
|
||||
IF (LEN(T).LE.0) WRITE(6,*) "Empty!"
|
||||
IF (LEN(T).GT.0) WRITE(6,*) "Not empty!"
|
||||
END
|
||||
CHARACTER*24 TEXT
|
||||
CALL TASTE("")
|
||||
CALL TASTE("This")
|
||||
TEXT = "" !Fills the entire variable with space characters.
|
||||
CALL TASTE(TEXT) !Passes all 24 of them. Result is Not empty!
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue