Danke André.. glaub so langsam kommt Licht ins Dunkle

Das Beispiel ist für ein CSharp Programm, aber ich denke das ich mir da das eine oder andere für mein C Programm abgucken kann xD