MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / dStrrev

Function dStrrev

Engine/source/core/strings/stringFunctions.cpp:540–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540int dStrrev(char* str)
541{
542 int l=dStrlen(str)-1; //get the string length
543 for(int x=0;x < l;x++,l--)
544 {
545 str[x]^=str[l]; //triple XOR Trick
546 str[l]^=str[x]; //for not using a temp
547 str[x]^=str[l];
548 }
549 return l;
550}
551
552int dItoa(int n, char s[])
553{

Callers 1

dItoaFunction · 0.85

Calls 1

dStrlenFunction · 0.70

Tested by

no test coverage detected