From: Peter Verthez Date: Tue, 17 Sep 2002 15:47:12 +0000 (+0000) Subject: Moved get/set string to gom_modify.c. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=5500079d8f9659388bcef6c17f8d36fdfdaddd82;p=gedcom-parse.git Moved get/set string to gom_modify.c. --- diff --git a/gom/gom.c b/gom/gom.c index 0203fc6..cf1876b 100644 --- a/gom/gom.c +++ b/gom/gom.c @@ -242,24 +242,3 @@ struct age_value* dup_age(struct age_value age) } return age_ptr; } - -char* gom_get_string(char** data) -{ - return *data; -} - -char* gom_set_string(char** data, char* newvalue) -{ - char* result = NULL; - char* newptr = strdup(newvalue); - - if (!newptr) - MEMORY_ERROR; - else { - if (*data) free(*data); - *data = newptr; - result = *data; - } - - return result; -}