Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An implementation of dynamic strings based on genvector #3

Open
cher-nov opened this issue Mar 24, 2017 · 0 comments
Open

An implementation of dynamic strings based on genvector #3

cher-nov opened this issue Mar 24, 2017 · 0 comments
Assignees

Comments

@cher-nov
Copy link
Owner

cher-nov commented Mar 24, 2017

Ideas:

  1. Should be null-terminated (i.e. count is always at least 1, and length is count-1).
  2. Should have functions similar to standard ones from string.h, but with taking length into account.
  3. Full name is "dynstring" and shortened is "dstr".
  4. typedef gvec_dstr_t dstr_t
  5. Consider using another repository for this.
  6. Use GVEC_MODULAR_APPROACH.
  7. Preserve compatibility with C89.
  8. Alias gvec functions with dstr_* prefix using defines (nb: this will not break function pointer obtainment).

tl;dr: steal everything from sds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant