-//static C functions follow would probably make sense to wrap this in PIMPL?
-
-static char* dupe(const char *buff, int len)
-{
- char *value = (char *) malloc(len + 1);
- assert(value);
- memcpy(value, buff, len);
- value[len] = '\0';
- return value;
-}
-