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,4ec4bddc1627be1c,start X-Google-Attributes: gid103376,public From: Tai Pan Subject: Help - Interfacing with C using Ada 83 Date: 1996/10/09 Message-ID: <325C73A2.6994@hiwaay.net>#1/1 X-Deja-AN: 188379015 content-type: text/plain; charset=us-ascii organization: BNF mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b8Gold (Win95; I) Date: 1996-10-09T00:00:00+00:00 List-Id: Can somebody tell me how to get Ada 83 to call a C routine in an MS-DOS environment? I'm using an ActivAda compiler and Borland C++ v4.51. The C routine returns null terminated strings up to 255 characters. I have the C source so the C compiler settings can be adjusted if required. Portability is not an issue. My project engineer says it can't be done. I find this hard to believe but I'm new to Ada and don't have much "hands on". I'm a bit paranoid about playing with the Ada compiler since compiling the demo "hello world" with three (!) added resulted in a compiler crash that scrambled my primary drive (not running the program, just trying to compile it). Surely Ada can handle such a seemingly simple task. Any help would be appreciated. Thanks in advance.