On Wednesday, May 14, 2014 8:05:20 PM UTC-4, Steven G. Johnson wrote:
>
>
>
> On Wednesday, May 14, 2014 7:57:49 PM UTC-4, Samuel Colvin wrote:
>
>> function get_key(key_::Ptr{Int32}, key_length_::Ptr{Cint})
>> key_length = unsafe_load(key_length_)
>> UTF32String(pointer_to_array(key_, int64(key_length), false))
>>
>
By the way, this should be int, not int64, to work on 32-bit machines.
(Probably pointer_to_array should do the cast for you.)
- [julia-users] Re: get string from Cwchar_t in cfunction Samuel Colvin
- Re: [julia-users] Re: get string from Cwchar_t in c... Jameson Nash
- Re: [julia-users] Re: get string from Cwchar_t ... Samuel Colvin
- Re: [julia-users] Re: get string from Cwcha... Samuel Colvin
- Re: [julia-users] Re: get string from C... Steven G. Johnson
- Re: [julia-users] Re: get string f... Samuel Colvin
- Re: [julia-users] Re: get stri... Samuel Colvin
- Re: [julia-users] Re: get stri... Steven G. Johnson
- Re: [julia-users] Re: get stri... Samuel Colvin
- Re: [julia-users] Re: get stri... Steven G. Johnson
- Re: [julia-users] Re: get stri... Steven G. Johnson
