Skip to content

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

Description

@Artoria2e5

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 *));

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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