From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- Dragon/src/AEXCPC.f | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Dragon/src/AEXCPC.f (limited to 'Dragon/src/AEXCPC.f') 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 -- cgit v1.2.3