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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.42.94.69 with SMTP id a5mr11333771icn.29.1406332794396; Fri, 25 Jul 2014 16:59:54 -0700 (PDT) X-Received: by 10.50.254.1 with SMTP id ae1mr201989igd.2.1406332794259; Fri, 25 Jul 2014 16:59:54 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news.glorb.com!h18no7687547igc.0!news-out.google.com!px9ni0igc.0!nntp.google.com!h18no7687543igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 25 Jul 2014 16:59:53 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <40d4db94-f0fd-417e-8aad-38a2dc2d287d@googlegroups.com> Subject: Re: chars_ptr vs char_array_access From: Adam Beneschan Injection-Date: Fri, 25 Jul 2014 23:59:54 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21228 Date: 2014-07-25T16:59:53-07:00 List-Id: On Friday, July 25, 2014 4:02:04 PM UTC-7, Victor Porton wrote: > To communicate a "char *" string with a C library, should I use chars_ptr or > char_array_access? > > Please answer, it is important for some open source projects. The answer is in the RM (B.3.1(22)): 'chars_ptr is C-compatible and corresponds to the use of C's "char *"...'. It doesn't say char_array_access is C-compatible. -- Adam