global: Rename unsigned char to uint8, DynamicUCharArray to DynamicUInt8Array and DynamicUCharVector to DynamicUInt8Vector.
diff --git a/ndn-cpp/c/util/dynamic-uint8-array.c b/ndn-cpp/c/util/dynamic-uint8-array.c
new file mode 100644
index 0000000..5a7e96d
--- /dev/null
+++ b/ndn-cpp/c/util/dynamic-uint8-array.c
@@ -0,0 +1,28 @@
+/**
+ * Copyright (C) 2013 Regents of the University of California.
+ * @author: Jeff Thompson <jefft0@remap.ucla.edu>
+ * See COPYING for copyright and distribution information.
+ */
+
+#include "dynamic-uint8-array.h"
+
+ndn_Error ndn_DynamicUInt8Array_reallocArray(struct ndn_DynamicUInt8Array *self, unsigned int length)
+{
+  if (!self->realloc)
+    return NDN_ERROR_DynamicUInt8Array_realloc_function_pointer_not_supplied;
+  
+  // See if double is enough.
+  unsigned int newLength = self->length * 2;
+  if (length > newLength)
+    // The needed length is much greater, so use it.
+    newLength = length;
+    
+  uint8_t *newArray = (*self->realloc)(self, self->array, newLength);
+  if (!newArray)
+    return NDN_ERROR_DynamicUInt8Array_realloc_failed;
+  
+  self->array = newArray;
+  self->length = newLength;
+  
+  return NDN_ERROR_success;
+}