summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-05-13 15:02:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-14 20:16:26 +0200
commitcbdf1e6dfaa895b12c40cfb2aa15dee65f0b85d6 (patch)
tree3b0aba1b3109d5412049d5742e946727f3dfcc2b /include
parent7b5817e58d77d44d1e85fb25e384785d2682ed7d (diff)
downloadbarebox-cbdf1e6dfaa895b12c40cfb2aa15dee65f0b85d6.tar.gz
barebox-cbdf1e6dfaa895b12c40cfb2aa15dee65f0b85d6.tar.xz
add qsort support
This is based on U-Boot code which in turn is based on uclibc code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/qsort.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qsort.h b/include/qsort.h
new file mode 100644
index 000000000..bbb23595b
--- /dev/null
+++ b/include/qsort.h
@@ -0,0 +1,7 @@
+#ifndef __QSORT_H
+#define __QSORT_H
+
+void qsort(void *base, size_t nel, size_t width,
+ int (*comp)(const void *, const void *));
+
+#endif /* __QSORT_H */