Jump to content

Talk:Generic swap: Difference between revisions

dc and reverse.
(dc and reverse.)
Line 93:
y does the c version use char* and not void *? can it use anything? long* int* short* byte*etc?
:Because you can't operate on (void *), only refer to it. That said, a ''real'' implementation would cast to (int *) first (the most efficient machine word size), then finish any leftovers with a few less efficient (char *) swaps at the end. --[[User:IanOsgood|IanOsgood]] 18:50, 3 February 2008 (MST)
 
== dc ==
reverse is only available as a GNU extension (same with n, and comments (#) etc. - probably the other version should be kept too?)
[[User:Rahul|Rahul]] 20:46, 8 December 2008 (UTC)
418

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.