blob: d09ca326a77a8250fb0ed119f936b07623e8c8e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
|