|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package C_Strings, seg_04b925
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with A_Strings;
with Unchecked_Conversion;
with Unchecked_Deallocation;
with System;
package C_Strings is
Max_File_Name_Size : constant := 1024;
pragma Warnings (Off);
subtype C_String_T is String (1 .. Integer'Last);
type C_String is access C_String_T; --WARNING
pragma Local_Access (C_String);
subtype C_String_Buf is String (1 .. Max_File_Name_Size);
pragma Warnings (On);
function Address_To_C is
new Unchecked_Conversion (Source => System.Address, Target => C_String);
function To_C is new Unchecked_Conversion
(Source => System.Address, Target => C_String);
function C_To_Address is
new Unchecked_Conversion (Source => C_String, Target => System.Address);
pragma Warnings (Off);
procedure Free is new Unchecked_Deallocation
(Object => C_String_T, Name => C_String);
pragma Warnings (On);
-- returns the number of characters before the first null character
-- is encountered
function C_Length (S : C_String) return Integer;
-- converts the characters up to the first null into a string
function Convert_C_To_String (S : C_String) return String;
function To_String (S : C_String) return String renames Convert_C_To_String;
-- converts the characters up to the first null symbol into a_string
function Convert_C_To_A (S : C_String) return A_Strings.A_String;
function To_A (S : C_String) return A_Strings.A_String
renames Convert_C_To_A;
-- converts the a_string to an array of characters (c_string)
-- terminated by a null character.
function Convert_A_To_C (S : A_Strings.A_String) return C_String;
function To_C (S : A_Strings.A_String) return C_String
renames Convert_A_To_C;
-- same, but converts a_string into given buffer, returning pointer to buf
function To_C (S : A_Strings.A_String; Buf : System.Address)
return C_String;
-- converts the string to an array of characters (c_string)
-- terminated by a null character.
function Convert_String_To_C (S : String) return C_String;
function To_C (S : String) return C_String renames Convert_String_To_C;
-- same, but converts string into given buffer, returning pointer to buf
function To_C (S : String; Buf : System.Address) return C_String;
function Strcmp (A, B : C_String) return Boolean;
function Strcmp (A : C_String; B : A_Strings.A_String) return Boolean;
function Strcmp (A : A_Strings.A_String; B : C_String) return Boolean;
function Strcmp (A : C_String; B : String) return Boolean;
function Strcmp (A : String; B : C_String) return Boolean;
-- the C-like strcmp: -1 if x<y, 0 if x=y, +1 if x>y
function Strcmp (X, Y : C_String) return Integer;
-- Like C functions; returns first argument.
function Strcpy (To : C_String; From : String) return C_String;
function Strcpy (To : C_String; From : C_String) return C_String;
function Strcpy (To : C_String; From : A_Strings.A_String) return C_String;
function Strcat (To : C_String; From : String) return C_String;
function Strcat (To : C_String; From : C_String) return C_String;
function Strcat (To : C_String; From : A_Strings.A_String) return C_String;
function Rindex (Str : C_Strings.C_String; Ch : Character) return Integer;
function String_Copy (A : C_String) return C_String;
end C_Strings;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=1f rec1=00 rec2=01 rec3=03e
[0x01] rec0=14 rec1=00 rec2=02 rec3=008
[0x02] rec0=13 rec1=00 rec2=03 rec3=080
[0x03] rec0=0c rec1=00 rec2=04 rec3=000
tail 0x21750b7f4868434b04fe0 0x42a00088462060003