I’m trying to find out the proper way to allocate temporary memory in DC9. I’m using an RCM2200 board (I think that’s the model anyway), and what I’m trying to do is code a function that takes an ASCII HEX string (each hex byte is represented as 2 ASCII characters) and return a “string” of the hex bytes.
I’d use malloc() on another compiler but according to the documentation, malloc() doesn’t exist on DC (at least not 9.62). Once I’ve converted this string, I want to pass it onto the MODBUS routines to send it. I also need to do the reverse (i.e., take a binary string and return an ASCII HEX string.
Is there a way to do this or will I have to write my own malloc() function?
Thanks!
Len Morgan