mirror of
https://github.com/troydhanson/tpl.git
synced 2025-01-14 08:37:56 +08:00
Add parentheses
This commit is contained in:
parent
969dba4558
commit
421d5df00a
@ -1332,7 +1332,7 @@ int main() {
|
|||||||
tpl_load(tn, TPL_FILE, "/tmp/fixed.tpl");
|
tpl_load(tn, TPL_FILE, "/tmp/fixed.tpl");
|
||||||
tpl_unpack(tn,0); /* unpack all 10 elements at once */
|
tpl_unpack(tn,0); /* unpack all 10 elements at once */
|
||||||
tpl_free(tn);
|
tpl_free(tn);
|
||||||
/* now do something with x[0]...x[9].. (not shown */
|
/* now do something with x[0]...x[9].. (not shown) */
|
||||||
}</tt></pre>
|
}</tt></pre>
|
||||||
</div></div>
|
</div></div>
|
||||||
<div class="paragraph"><p>For completeness, let’s also see how to unpack a variable-length integer array.</p></div>
|
<div class="paragraph"><p>For completeness, let’s also see how to unpack a variable-length integer array.</p></div>
|
||||||
|
@ -395,7 +395,7 @@ int main() {
|
|||||||
tpl_load(tn, TPL_FILE, "/tmp/fixed.tpl");
|
tpl_load(tn, TPL_FILE, "/tmp/fixed.tpl");
|
||||||
tpl_unpack(tn,0); /* unpack all 10 elements at once */
|
tpl_unpack(tn,0); /* unpack all 10 elements at once */
|
||||||
tpl_free(tn);
|
tpl_free(tn);
|
||||||
/* now do something with x[0]...x[9].. (not shown */
|
/* now do something with x[0]...x[9].. (not shown) */
|
||||||
}
|
}
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user