mirror of
https://tinyplantnews.com/git2/ldaphotos
synced 2025-01-10 18:35:15 +00:00
da6f0568b6
Takes a line of input from stdin, then outputs its SHA256 hash. Verbosity cannot be changed.
20 lines
513 B
C
20 lines
513 B
C
#ifndef LDAP_LOG
|
|
#define LDAP_LOG
|
|
|
|
const char * currtime(void);
|
|
/*
|
|
Great, I remember why I chose to use a macro.
|
|
There's no good paradigm for passing the variadic arguments of printf
|
|
through another function.
|
|
|
|
I can use a paradigm wherein you just call the timestamper immediately
|
|
before printf()-ing your message, but like,
|
|
I dunno.
|
|
|
|
Let's see whether I can split the log(X) macro into this and a
|
|
function in log.h that supplies the time
|
|
*/
|
|
#define log(X) printf("%s %s", currtime(), X)
|
|
|
|
#endif
|