realloc in Funktion auslagern

Druckbare Version