<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12152">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">api doc: gsm48_mi_to_string(): warn of return value implementation<br><br>Change-Id: If5e7abd15dddf39cdfad8071f4cd5ca8244eabe0<br>---<br>M src/gsm/gsm48.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/52/12152/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c</span><br><span>index ae9a1cf..e684a3c 100644</span><br><span>--- a/src/gsm/gsm48.c</span><br><span>+++ b/src/gsm/gsm48.c</span><br><span>@@ -643,7 +643,10 @@</span><br><span>  *  \param[in] str_len Length of \a string in bytes</span><br><span>  *  \param[in] mi Mobile Identity to be stringified</span><br><span>  *  \param[in] mi_len Length of \a mi in bytes</span><br><span style="color: hsl(0, 100%, 40%);">- *  \returns length of string written to \a string */</span><br><span style="color: hsl(120, 100%, 40%);">+ *  \returns WARNING: the return value of this function is not well implemented.</span><br><span style="color: hsl(120, 100%, 40%);">+ *           Depending on the MI type and amount of output buffer, this may return</span><br><span style="color: hsl(120, 100%, 40%);">+ *           the nr of written bytes, or the written strlen(), or the snprintf()</span><br><span style="color: hsl(120, 100%, 40%);">+ *           style strlen()-if-the-buffer-were-large-enough. */</span><br><span> int gsm48_mi_to_string(char *string, const int str_len, const uint8_t *mi,</span><br><span>                       const int mi_len)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12152">change 12152</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12152"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If5e7abd15dddf39cdfad8071f4cd5ca8244eabe0 </div>
<div style="display:none"> Gerrit-Change-Number: 12152 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>