I tried with c_wchar_p, as well as, with c_char_p. Either way, didn't work.
    
    
    mystring = c_char_p("robert james fischer")
    test_lib.AmericanSoundex.argtype = c_char_p
    test_lib.AmericanSoundex.restype = c_char_p
    soundex_res = test_lib.AmericanSoundex(mystring)
    print('The Soundex is: %s'%soundex_res)
    

After converting the mystring to bytes I’m getting: The Soundex is: b'x04'

Do you know what C type the nim code for AmericanSoundex is being converted 
into ?

Reply via email to