diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Dragon/src/AEXCPC.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/src/AEXCPC.f')
| -rw-r--r-- | Dragon/src/AEXCPC.f | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Dragon/src/AEXCPC.f b/Dragon/src/AEXCPC.f new file mode 100644 index 0000000..d09ca32 --- /dev/null +++ b/Dragon/src/AEXCPC.f @@ -0,0 +1,40 @@ +*DECK AEXCPC + SUBROUTINE AEXCPC(IDKSGT,LNGTAB,TABSGT,TABLUE) +* +*----------------------------------------------------------------------- +* +*Purpose: +* Extraction of character information from an integer segment. Component +* of a FORTRAN-77 emulator of the SAPHYR archive system. +* +*Copyright: +* Copyright (C) 1999 Ecole Polytechnique de Montreal +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2.1 of the License, or (at your option) any later version +* +*Author(s): A. Hebert +* +*Parameters: input +* IDKSGT position (in byte) of information in segment. +* LNGTAB number of characters in the information. +* TABSGT integer segment. +* +*Parameters: output +* TABLUE CHARACTER*(LNGTAB) information. +* +*----------------------------------------------------------------------- +* + INTEGER IDKSGT,LNGTAB,TABSGT(*) + CHARACTER TABLUE*(*),TEXT4*4 +* + IDK=(IDKSGT+3)/4 + IOF=1 + DO 100 I=1,(LNGTAB+3)/4 + WRITE(TEXT4,'(A4)') TABSGT(IDK+I) + TABLUE(IOF:IOF+3)=TEXT4 + IOF=IOF+4 + 100 CONTINUE + RETURN + END |
