Como mostrar as horas num formato 13:40:23 em C.
#include<stdio.h>
#include<time.h>
int main(){
struct tm *ptr;
time_t tm;
char str[60];
tm = time(NULL);
ptr = localtime(&tm);
strftime(str ,100 , “%X.\n”,ptr);
printf(str);
return 0;
}

Procurando um livro de programação em C? Buscapé.