<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110548>110548</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc] Implement ctime_s
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zimirza
</td>
</tr>
</table>
<pre>
`ctime` and `ctime_r` are already implemented. It might be good to implement `ctime_s`. This is defined as the following:
```c
errno_t ctime_s(char *buf, size_t buf_size, const time_t *time);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUc1u5CwQfBp8acXC7V8OHJJvZCn37z7ip22zwmYEOKvM06_szOxIKyGgW9VFUaVScvNGJFn7wdpLofa8hCjvbnXxrgod7LdkHTfZrcQ6Dmqz8Kyv8exEAuUjKfsNbr15WmnLZEv4zLC6ecmgCeYQLOTwArxIEut4Cf8vLoFLYGlyG1lQCfJCMAXvw2-3zax-Z_zC-HPv-M8yPzXFuIVrhiclDmZRERi-631i-B8kd6drBr1P1-N6tEzYUoZzIB_I84soWP3xzxuFlbUVtVAFyarHvkeOgygW2SiyWLVcV1p0YhAGsVG8trznukZjCyeRY8NFzauhGrgoEfXUWzGoptZtIwbWcFqV86X3X2sZ4ly4lHaSVcXbZii80uTTmQ2id9owxCOlKA_8m97nxBruXcrpxZBd9mee50B7gc-_pj_sKfbo5ZLzLR224shwnF1edl2asDIcD6rH8XaL4ReZzHA8lSWG40Pcl8Q_AQAA__8h27LP">