MCPcopy Create free account
hub / github.com/cppla/ServerStatus / str_timestamp

Function str_timestamp

server/src/system.c:1757–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1755}
1756
1757void str_timestamp(char *buffer, int buffer_size)
1758{
1759 time_t time_data;
1760 struct tm *time_info;
1761
1762 time(&time_data);
1763 time_info = localtime(&time_data);
1764 strftime(buffer, buffer_size, "%Y-%m-%d_%H-%M-%S", time_info);
1765 buffer[buffer_size-1] = 0; /* assure null termination */
1766}
1767
1768int mem_comp(const void *a, const void *b, int size)
1769{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected