Wow, that was an excellent response and the simple _myString.cstring_ seems to 
be doing exactly what I needed. But now I'm looking to turn a void* into a 
string. To this end I've tried _var myString = cast[ptr string](data)[]_, but 
this generates a segment fault:
    
    
    Program received signal SIGSEGV, Segmentation fault.
    0x000000000040cf9c in copyString (src=0x1) at 
/home/steve/nim-0.17.0/lib/system/sysstr.nim:93
    93          if (src.reserved and seqShallowFlag) != 0:
    

I feel like I'm really close to resolving this. If anyone can point me toward 
what I'm missing, I would really appreciate it! 

Reply via email to