I want to rewrite a C functions in Nim. This is the C signature:
    
    
    extern char **StringSplit(char sep, const char *str);
    
    
    Run

I wrote this procedure:
    
    
    proc StringSplit*(sep: cchar, str: cstring): cstringArray {.cdecl, 
exportc.} =
        # something here
        
        return allocCstringArray(aStringsSeq)
    
    
    Run

and all works as expected. My question is: where and when i call 
`deallocCStringArray()`?

Reply via email to