Files
PolyORB/Examples/MultiSto/types.adb
Laurent Pautet bef6d79289 Add example using shared passive partitions and multi data storage
feature

Subversion-branch: /importfromcvs/trunk
Subversion-revision: 47451
2000-05-24 17:53:38 +00:00

16 lines
389 B
Ada

package body Types is
procedure Set (W : in out Word; S : String) is
L : Natural := S'Length;
begin
if L > W'Length then
L := W'Length;
end if;
for I in W'First .. W'First + L - 1 loop
W (I) := S (S'First + I - W'First);
end loop;
for I in W'First + L .. W'Last loop
W (I) := ' ';
end loop;
end Set;
end Types;