All pastes #812633 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-11 22:36 UTC
rendered paste body
legeek@anubis /home/geek/ncurses $ cat plop.c 
#include <stdio.h>

main()
{
	int arret=0;
	int h=0;
	int m=0;
	int s=0;
	while(arret<1) /** arret est a affecter au moment ou tu veux **/
	{
		if(s==59)
		{
			s=0;
			if(m==59)
			{
				m=0;
				if(h==23)
				{
					 h=0;
				}else	{
						h++;
					}
			}else	{
					m++;
				}
		}else	{
				s++;
			}
	printf("chrono %d : %d : %d\n",h,m,s);
	sleep(1);
	system("clear"); /** C'est moche. oriente toi vers du ncurses **/
	}
}