Einzelnen Beitrag anzeigen
Alt 03.01.2006, 08:50   #4
helios
Veteran
 
Registriert seit: 21.06.2001
Beiträge: 343


helios eine Nachricht über ICQ schicken
Standard

Code:
void GetCorrectTime1( char str[][])
{
  printf ("%s\n", *str);
  strcpy(*str,"11:11:11");
}

void GetCorrectTime2( char str[])
{
  printf ("%s\n", str);
  strcpy(str, "22:22:22");
}


main ()
{
  char FormatedTime[] = "00:00:00"; 
  GetCorrectTime1(&FormatedTime);
  printf ("%s\n", FormatedTime);
  GetCorrectTime2(FormatedTime);
  printf ("%s\n", FormatedTime);
}
____________________________________
religion is a virus from outer space
helios ist offline   Mit Zitat antworten