All pastes #282322 Raw Edit

Someone

public c v1 · immutable
#282322 ·published 2006-12-17 14:01 UTC
rendered paste body
/* Test pour une:	char *fonction()*/#include <stdio.h>#include <time.h>char *heure(char *buffer){	time_t timestamp;	struct tm *heure;	time(&timestamp);	heure = localtime(&timestamp);	sprintf(buffer, "%02d:%02d:%02d" ,heure->tm_hour, heure->tm_min, heure->tm_sec);	return buffer;}int main(int *argc, char **argv){	char char_heure[9];	printf("heure: %s\n", heure(char_heure) );	return 0;}