Anonymous user
Generic swap: Difference between revisions
→{{header|C}}: simplify; remove comments that basically described the second example
(→{{header|Delphi}}: Does not implement anything generic.) |
(→{{header|C}}: simplify; remove comments that basically described the second example) |
||
Line 99:
=={{header|C}}==
This has a restriction that a and b must be the same size.
<lang c>void swap(void *
{
char t, *
while(--s)
}</lang>
==={{works with|gcc}}===
|