Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Time Stamp
//gcc 7.4.0 #include <stdio.h> #include <string.h> #include <time.h> void get_timestamp ( char * timestamp ) { time_t seconds = time ( NULL ); sprintf ( timestamp, "%-llu", ( unsigned long long int ) seconds ); } int main(void) { char timestamp [ 12 ] = { 0 }; get_timestamp ( timestamp ); printf("%s\n", timestamp ); return 0; }
run
|
edit
|
history
|
help
0
ej 2 c3
object-oriented C by Henry Kroll III www.thenerdshow.com
Volume of sphere
C_141210_Funciones
A_141121_factorial01
Polidivisible
Lab 7 blackjack v0.9
No warnings!!!
Basic String Compression in C
Assignment 7