Oops, sorry, I was misslead by Steph reply.
Some of the comments might still hold. For the
time: ���05:45��� code to work, you would need FFI to handle all the hassle of memory management and actually allocate the memory for 5 characters and copying it. I never used FFI but I doubt it does this.
Looking at FFI library, you both have ExternalAddress (for the struct with char*) and ExternalType (for the struct with char[5]) that you can use. For the later solution, it still looks like you should define a specific 5 bytes ArrayOf5Char type.