MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / swap

Function swap

examples/test/avl.c:269–274  ·  view source on GitHub ↗

A utility function to swap to integers

Source from the content-addressed store, hash-verified

267
268// A utility function to swap to integers
269static inline void swap (int *a, int *b)
270{
271 int temp = *a;
272 *a = *b;
273 *b = temp;
274}
275
276// A function to generate a random permutation of arr[]
277static void randomize ( int arr[], int n )

Callers 1

randomizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected