Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com>
---
 include/lib/array.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/lib/array.h b/include/lib/array.h
index 3b43db5..cff85c1 100644
--- a/include/lib/array.h
+++ b/include/lib/array.h
@@ -81,4 +81,10 @@ static inline int array_append(struct array *a, void 
*element)
        return 0;
 }
 
+static inline void array_qsort(struct array *a,
+       int (*cmp)(const void *, const void *))
+{
+       qsort(a->ptr, a->size, sizeof(void *), cmp);
+}
+
 #endif
-- 
1.6.0.4


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to