Thank you @elcritch

Can I another question:

  * what could be the best way to pass pointer of cstrings/strings array


    
    
    // C: f(char *attrs[])
    proc f(attrs: ptr cstring) {.importc.}
    
    var attrs = ["1".cstring]
    f(attrs.addr)  // or attrs[0].addr => both fails
    
    
    Run

  * and another question is how to return the same array of cstrings? Looks 
like it should UncheckedArray, but I cannot return it from the function. I can 
cast of course, but not sure is it good way or not


Reply via email to