Yurttas/PL/IL/Ada-95/F/05/00/PS/io pointer string 01.adb

From ZCubes Wiki
Jump to navigation Jump to search
 1--
 2-- Copyright (C) 1998
 3-- All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4--
 5-- Permission to use, copy, modify, and distribute this 
 6-- software and its documentation for EDUCATIONAL purposes
 7-- and without fee is hereby granted provided that this 
 8-- copyright notice appears in all copies. 
 9-- 
10-- 
11 
12-- date   : January 1, 1998.
13-- author : Salih Yurttas.
14
15-- purpose : Input/Output of a varying string as a pointer_string;
16--           input and output files are default files which are
17--           (keyboard/screen).
18
19-- io_pointer_string_01.adb
20
21
22with IO_Pointer_String_P; use IO_Pointer_String_P;
23
24procedure IO_Pointer_String_01 is
25
26  Data : Pointer_String;
27
28begin
29
30  Data := Get_Pointer_String("--> Input Data as a String : ");
31
32  Put_Pointer_String("Data /",
33                     Data);
34
35end IO_Pointer_String_01;