if (type == TYPE_STRING) { sn->data = strdup((char *) data); } else { sn->data = data; }