Refactor searchUUIDByName: update parameter type for UUIDs found, improve memory allocation handling, and enhance error checking

This commit is contained in:
2025-05-17 18:30:55 +02:00
parent 05e8fefafc
commit c84987239e
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ uint16_t generateUUID(list_t *_list);
* @param _surname Pointer to a string containing the user's surname.
* @return Pointer to the UUID of the user if found, or 0 if no match is found.
*/
uint16_t searchUUIDByName(list_t *_list, char *_name, char *_surname, uint16_t * _uuids_found);
uint16_t searchUUIDByName(list_t *_list, char *_name, char *_surname, uint16_t **_uuids_found);
/**
* @brief Searches for a person in a linked list by their UUID.