diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-02-25 18:17:16 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2011-05-14 13:43:48 +0200 |
commit | be6ab549869d5d6e0ab52eac52537963fa6f71c4 (patch) | |
tree | 6dd32c4e6da1f3b3a716bd6ecce40a2443f1232e /include/bsd/stdlib.h | |
parent | 5b19adfa82b49bdb9b46c857b618c181f238290b (diff) | |
download | libbsd-be6ab549869d5d6e0ab52eac52537963fa6f71c4.tar.gz |
Add new mergesort function
Taken from FreeBSD.
Diffstat (limited to 'include/bsd/stdlib.h')
-rw-r--r-- | include/bsd/stdlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 9e1d640..bfe3027 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -1,7 +1,7 @@ /* * Copyright © 2005 Aurelien Jarno * Copyright © 2006 Robert Millan - * Copyright © 2008, 2009, 2010 Guillem Jover + * Copyright © 2008-2011 Guillem Jover * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -52,6 +52,8 @@ const char *getprogname(void); void setprogname(const char *); int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)); +int mergesort(void *base, size_t nmemb, size_t size, + int (*cmp)(const void *, const void *)); void *reallocf(void *ptr, size_t size); |