From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba2d61811afdbb11,start X-Google-Attributes: gid103376,public From: Chris Jones Subject: C->Ada: Converting char* to unsigned long Date: 1996/05/16 Message-ID: <319B3021.41C67EA6@is2.nyu.edu>#1/1 X-Deja-AN: 155143269 cc: cbj1329@is2.nyu.edu content-type: text/plain; charset=us-ascii organization: New York University mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.4 sun4m) Date: 1996-05-16T00:00:00+00:00 List-Id: 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