char* zeiger
-
Die Funktion ctime() erwartet als Parameter die Millisekunden seit 1970 und erzeugt daraus einen Zeitstring. Wenn die Funktion diesen Zeitstring als char* zurückgibt muss doch Speicher angefordert werden??
-
http://www.cplusplus.com/reference/clibrary/ctime/ctime/
The array which holds this string is statically allocated and shared by both the ctime and asctime functions. Each time either one of these functions is called the content of this array is overwritten.
-
Doku lesen.
cplusplus.com schrieb:
The array which holds this string is statically allocated and shared by both the ctime and asctime functions. Each time either one of these functions is called the content of this array is overwritten.
-
Wahnsinn, habe theliquidwave's Post nicht gesehen
