Refactor searchUUIDByName: update parameter type for UUIDs found, improve memory allocation handling, and enhance error checking
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user