Skip to content

concat should let user decide the memory allocation strategy #4

Closed

Description

@mikaelarguedas

connects to #6

User should pass allocated strings and concat should not make the choice of calling malloc for the user. e.g. realtime users may have this memory preallocated at startup and don't want spurious malloc in their realtime loop: https://github.com/ros2/c_utilities/blob/bb2fd057f15c9556f602bc2da192aab61cdd39f3/src/concat.c#L40

Activity

  1. self-assigned this
    on Mar 28, 2017
  2. Karsten1987 commented on Mar 28, 2017

    @Karsten1987
    Contributor

    I'll assign this to me and try to get this done in the near future.

  3. mikaelarguedas commented on Mar 28, 2017

    @mikaelarguedas
    MemberAuthor

    I can handle it if you want, I'm shoveling some c_utilities stuff these days.
    If you take care of it, can you also make the delimiter argument optional and default to NULL, and add docblocks for these functions ? Thanks!

  4. Karsten1987 commented on Jun 14, 2017

    @Karsten1987
    Contributor
  5. added a commit that references this issue on Apr 20, 2019
  6. added a commit that references this issue on Apr 20, 2019
  7. added a commit that references this issue on Oct 13, 2020
  8. added a commit that references this issue on Oct 9, 2022
  9. added a commit that references this issue on Jan 2, 2023
  10. added a commit that references this issue on Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions