<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/124339>124339</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [libc][stdlib] implement wcstombs
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nickdesaulniers
      </td>
    </tr>
</table>

<pre>
    In order to test various functions from wchar.h, we need to be able to print the actual vs expected results. To do so, we must be able to convert wide character strings back to c strings.  The canonical way to do so in C is via `wcstombs`. `wcstombs` can be implemented in terms of `wcsrtombs`.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckk1u3DAMhU8jb4gYtizZ8cKLJsEA3ecCkswZs5GlgUjPNLcvbEyaoiv94L2PTyIdM10S4qTsi7JvldtkyWVKFD5mZLfFRFi48nn-nH4myGXGApJBkAVurlDeGM5bCkI5MZxLXuEeFlfqRelXuCMkxHl3eATnI-7ba6EkIAuCC7K5CDcG_H3FIDhDQd6icA3vGeYMnB-cdWP5FxJyumERuNOMsFd0QbAAS6F0YfAufByyr5sa4H1BCC7lRMFFuLvPXXDUAErwCsRwIweqb-6BJa-eVd_U_513wp6D1mvEFdOemRIIlpUhnx_q8tdezVM3j93oKpzaoRsG27bWVMvUGmM7O7Z67PtghzBqM_atMcYNtrG2r2jSjbZNq41uurE1tX5-tnPonTXWD2bwyjS4Oop1jLe1zuVSEfOGU6tN141VdB4jH53VOpIPSuu9x2Xa9U9-u7AyTSQW_iYISTym4TDYN2VfWOZIXtm37zfD14dUW4nTInJl1f1Q-qT06UKybL4OeVX6tHMfy9O15F8YROnTEZOVPj2S3ib9JwAA___zT9X8">