* chars_ptr vs char_array_access
@ 2014-07-25 23:02 Victor Porton
2014-07-25 23:59 ` Adam Beneschan
0 siblings, 1 reply; 4+ messages in thread
From: Victor Porton @ 2014-07-25 23:02 UTC (permalink / raw)
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.
--
Victor Porton - http://portonvictor.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: chars_ptr vs char_array_access
2014-07-25 23:02 chars_ptr vs char_array_access Victor Porton
@ 2014-07-25 23:59 ` Adam Beneschan
2014-07-26 0:04 ` Victor Porton
0 siblings, 1 reply; 4+ messages in thread
From: Adam Beneschan @ 2014-07-25 23:59 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: chars_ptr vs char_array_access
2014-07-25 23:59 ` Adam Beneschan
@ 2014-07-26 0:04 ` Victor Porton
2014-07-26 0:07 ` Adam Beneschan
0 siblings, 1 reply; 4+ messages in thread
From: Victor Porton @ 2014-07-26 0:04 UTC (permalink / raw)
Adam Beneschan wrote:
> 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.
Thanks.
But what then char_array_access is defined at all? How it is useful?
--
Victor Porton - http://portonvictor.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-26 0:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-25 23:02 chars_ptr vs char_array_access Victor Porton
2014-07-25 23:59 ` Adam Beneschan
2014-07-26 0:04 ` Victor Porton
2014-07-26 0:07 ` Adam Beneschan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox