From: Chris Jones <cbj1329@is2.nyu.edu>
Cc: cbj1329@is2.nyu.edu
Subject: C->Ada: Converting char* to unsigned long
Date: 1996/05/16
Date: 1996-05-16T00:00:00+00:00 [thread overview]
Message-ID: <319B3021.41C67EA6@is2.nyu.edu> (raw)
How can I convert the following to ada:
bcopy( (char*)pHost_Info->h_addr,
(char*)&Serv_Addr.sin_addr,
pHost_Info->h_length );
where:
-- pHost_Info->h_addr is a char* to a string with length h_length,
-- Serv_Addr.sin_addr is an unsigned long
I have tried Unchecked_Conversion, but it does not work for the
unconstrained type Interfaces.C.Char_Array.
A function which does a straight byte copy without regard to type
would be helpful, I guess...
thanks in advance.
chris jones.
cbj1329@is2.nyu.edu
next reply other threads:[~1996-05-16 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-16 0:00 Chris Jones [this message]
1996-05-16 0:00 ` C->Ada: Converting char* to unsigned long Pascal Ledru
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox