created get_last_node_identifier function

This commit is contained in:
Václav Šmejkal 2023-02-02 17:39:53 +01:00
parent cc91298e5f
commit 00fbba4159
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -81,6 +81,16 @@ void remove_node_from_end()
free(buffer);
}
char *get_last_node_identifier(void)
{
if (head == NULL) return DEFAULT_MEMORY_IDENTIFIER;
node_t *buffer = head;
while (buffer -> next != NULL) buffer = buffer -> next;
return buffer -> identifier;
}
//GETTERS
char why2_get_encryption_separator(void)
{