Search
 
SCRIPT & CODE EXAMPLE
 

C

Xor swap

void xorSwap(void *x, void *y, int len) { 
if (x != y) {
for(; len-- > 0; x++; y++) {
*(char*)x ^= *(char*)y; 
*(char*)y ^= *(char*)x; 
*(char*)x ^= *(char*)y;
}
} 
}
Comment

PREVIOUS NEXT
Code Example
C :: How to change an array in a function in c 
C :: how to sort assending in c 
C :: turn a char into an int in c 
C :: how do you make a copy of a linked list in c 
C :: how to modulo in c without % 
C :: c language time() function 
C :: c program to print the multiplication table 
C :: limit axis in one direction plt 
C :: read a document in c getting name from console 
C :: how to read keyboard input in C 
C :: count distinct characters in a string C 
C :: enable disable audio listener unity 
C :: add_to_cart how to call it woocommerce 
C :: create role in psql with password 
C :: bootstrap form 
C :: fgets c 
C :: windows forms picturebox change image 
C :: lichess puzzles 
C :: Installing Tailwind 
C :: c print characters 
C :: unpack and repack deb package 
C :: c check if character is upper case 
C :: Create the static library libmy.a containing all the functions listed below: 
C :: c comment 
C :: c program for assignment operator 
C :: bitwise operators 
C :: Returns numbers between i and 0 
C :: arduino vscode upload choosing sketch 
C :: Fibonacci program c pthread 
C :: typecating in c 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =