Bug fixes.
This commit is contained in:
1 parent
a385f4d623
commit
8f1a6e24a7
2 files changed
+3
-3
No files matched your search
@@ -8,7 +8,7 @@ static unsigned int numberOfPersons = 0;
|
||||
|
||||
static int findPersonIdx(Person person);
|
||||
static void removePersonByIdx(unsigned int idx);
|
||||
static int compareNames(const void *arg1, const void *arg2);
|
||||
static int comparePersons(const void *arg1, const void *arg2);
|
||||
|
||||
// Fügt einen Namen hinzu. Im Fehlerfall (Archiv ist voll) soll 0, ansonsten 1 zurückgegeben werden.
|
||||
// Ist der angegebene Name länger als die zulässige Namenslänge, wird der Name abgeschnitten hinzugefügt. Rückgabe ist dann 1.
|
||||
@@ -85,7 +85,7 @@ void printPersons()
|
||||
{
|
||||
for(int i = 0; i < numberOfPersons; i++)
|
||||
{
|
||||
printf("%s: %u\n", persons[i].name), persons[i].age;
|
||||
printf("%s: %u\n", persons[i].name, persons[i].age);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user