What is the correct way to pass a parameter by reference to a library (".so") shared via ctypes?
What is the correct way to pass a parameter by reference to a library (".so") shared via ctypes?

In the library documentation says I can load the parameter(string) 02 ways:

# '78'  -> "OK" 
   OR
# '78+1' => In the latter case is to return information of the 02 indices at once.


Note that when you step '78+1' is not returning the information as if the library was
getting lost with quotes.

    sInfo = ' '*2000
    iInd  = '1+78'
    self.iDrv.getInfo.argtypes = [ c_char_p, c_char_p]
    self.iDrv.getInfo.restype = c_int
    self.Status = \
    self.iDrv.getInfo(iInd, sInfo);
    


What is the correct way to pass a parameter by reference to a library (".so") shared via ctypes?
===

What is the correct way to pass a parameter by reference to a library (".so") shared via ctypes?

In the library documentation says I can load the parameter(string) 02 ways:

# '78'  -> "OK" 
   OR
# '78+1' => In the latter case is to return information of the 02 indices at once.


Note that when you step '78+1' is not returning the information as if the library was
getting lost with quotes.

    sInfo = ' '*2000
    iInd  = '1+78'
    self.iDrv.getInfo.argtypes = [ c_char_p, c_char_p]
    self.iDrv.getInfo.restype = c_int
    self.Status = \
    self.iDrv.getInfo(iInd, sInfo);
    

