You need to pass a byte string from the Python side:
    
    
    import ctypes
    lib = ctypes.cdll.LoadLibrary('./libhello.so')
    lib.hello(b"Hello World!")
    
    Run

Also, your Nim function should probably return `void` instead of `cstring`. 

Reply via email to