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

C: need qsort()-like interface for any size #9

Open
Artoria2e5 opened this issue Mar 25, 2024 · 0 comments
Open

C: need qsort()-like interface for any size #9

Artoria2e5 opened this issue Mar 25, 2024 · 0 comments

Comments

@Artoria2e5
Copy link

Gaming's grailCommonSort() and friends seem to have a limitation on the size of elements, forcing them to be one of the sizes of pre-defined fundamental types. That restricts what can be done with it greatly.

An ideal interface would look like:

void grailsort_inplace(void *base, size_t nel, size_t width,
       int (*cmp)(const void *, const void *));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant