Client/Mouse: Add client_swap (new trial)

This commit is contained in:
Martin Duquesnoy
2009-06-19 01:16:17 +02:00
parent 59f203ee8f
commit 96cc645788
4 changed files with 55 additions and 4 deletions

View File

@@ -236,6 +236,21 @@ spawn(const char *format, ...)
return;
}
/** Swap two pointer.
*\param x First pointer
*\param y Second pointer
*/
void
swap_ptr(void **x, void **y)
{
void *t = *x;
*x = *y;
*y = t;
return;
}
/** Execute a sh command
* \param cmd Command (uicb_t type)
*/