From b493f971460c62dba5a3e0cbb085b366e09327d8 Mon Sep 17 00:00:00 2001 From: Kai Kehres Date: Thu, 26 Jan 2023 12:34:14 +0100 Subject: [PATCH] prod: changed returntype of getcharactername --- src/c/character.c | 2 +- src/c/character.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c/character.c b/src/c/character.c index c994b8d..02254ec 100644 --- a/src/c/character.c +++ b/src/c/character.c @@ -102,7 +102,7 @@ void setCharacterName (Character *character, char *newName) { strcpy(character->name,newName); } -char getCharacterName (Character *character) { +char* getCharacterName (Character *character) { return character->name; } diff --git a/src/c/character.h b/src/c/character.h index ee7973c..2afa7d4 100644 --- a/src/c/character.h +++ b/src/c/character.h @@ -62,6 +62,6 @@ void levelUp (Character *character); void setCharacterName (Character *character, char newName[]); -char getCharacterName (Character *character); +char* getCharacterName (Character *character); #endif \ No newline at end of file