]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/arraymem.h
3 * © 2016 and later: Unicode, Inc. and others.
4 * License & terms of use: http://www.unicode.org/copyright.html#License
6 * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
15 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
17 #define ARRAY_COPY(dst, src, count) memcpy((void *) (dst), (void *) (src), (count) * sizeof (src)[0])
19 #define NEW_ARRAY(type,count) (type *) malloc((count) * sizeof(type))
21 #define DELETE_ARRAY(array) free((void *) (array))
23 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])