source: rtems/c/src/ada-tests/support/address_io.adb @ cbb09503

4.104.114.84.95
Last change on this file since cbb09503 was 93bd518, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 18:07:51

new files

  • Property mode set to 100644
File size: 954 bytes
Line 
1--
2--  Address_IO / Specification
3--
4--  DESCRIPTION:
5--
6--  This package instantiates the IO routines necessary to
7--  perform IO on data of the type System.Address.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
14--  On-Line Applications Research Corporation (OAR).
15--  Copyright assigned to U.S. Government, 1994.
16--
17--  The license and distribution terms for this file may in
18--  the file LICENSE in this distribution or at
19--  http://www.OARcorp.com/rtems/license.html.
20--
21--  $Id$
22--
23
24with System;
25with System.Storage_Elements;
26with Text_IO;
27
28package body Address_IO is
29
30   procedure Put (
31      Item  : in     System.Address;
32      Width : in     Natural := 8;
33      Base  : in     Natural := 16
34   ) is
35     package Integer_IO is new TEXT_IO.Integer_IO( Integer );
36   begin
37
38      Integer_IO.Put(
39         Integer( System.Storage_Elements.To_Integer( Item ) ),
40         Width,
41         Base
42      );
43
44   end Put;
45
46end Address_IO;
47
Note: See TracBrowser for help on using the repository browser.