aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-06-13 01:45:10 +0200
committerWolfgang Denk <wd@denx.de>2010-09-19 19:29:47 +0200
commit54c6977e9ca41fb38b45f1746d90f2806be3b5cb (patch)
tree66b23eabbb3a2569a69d7247590b53894c055e8c /include
parent65cd3fa81ff48cd44bcb3d9baf646dade15b9131 (diff)
downloadu-boot-54c6977e9ca41fb38b45f1746d90f2806be3b5cb.zip
u-boot-54c6977e9ca41fb38b45f1746d90f2806be3b5cb.tar.gz
u-boot-54c6977e9ca41fb38b45f1746d90f2806be3b5cb.tar.bz2
Add qsort - add support for sorting data arrays
Code adapted from uClibc-0.9.30.3 Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 6a79ec2..2f85d12 100644
--- a/include/common.h
+++ b/include/common.h
@@ -631,6 +631,10 @@ static inline IPaddr_t getenv_IPaddr (char *var)
return (string_to_ip(getenv(var)));
}
+/* lib/qsort.c */
+void qsort(void *base, size_t nmemb, size_t size,
+ int(*compar)(const void *, const void *));
+
/* lib/time.c */
void udelay (unsigned long);