• MorphOS Developer
    Piru
    Posts: 576 from 2003/2/24
    From: finland, the l...
    Quote:

    When you say allocate I guess you mean to allocate memory for it, right? So, I guess the ConvertTagList doesn't do that itself.

    ConvertTagList does not allocate the buffer for you. Currently the code above uses random pointer for the output buffer. It cannot work. The caller must provide this buffer and the size of it. Typically you allocate some memory and release it afterwards.

    Quote:

    I think that this code has everything that is needed to do the conversion. Is there something else that I had to do?

    text_len is always 0. That cannot work.
  • »23.02.24 - 14:11
    Profile