Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
reverse.c File Reference
#include "types.h"

Go to the source code of this file.

Functions

void reverseinplace (Uchar *s, Uint len)
 Reverses a string without using extra memory. More...
 
void reversestring (Uchar *s, Uint len, Uchar *sreverse)
 Reverses a string and returns the reverse in a new string. More...
 
void reverseString2Binary (Uchar *s, Uint len, Uchar *sreverse, Uint revLength)
 Reverses a string bit by bit and returns a new bit string with the reversed bits. More...
 

Function Documentation

void reverseinplace ( Uchar s,
Uint  len 
)

Reverses a string without using extra memory.

Parameters
[in]sstring to reverse.
[in]lenlength of the string to reverse.

Definition at line 25 of file reverse.c.

void reversestring ( Uchar s,
Uint  len,
Uchar sreverse 
)

Reverses a string and returns the reverse in a new string.

Parameters
[in]sstring to reverse.
[in]lenlength of the string to reverse.
[out]sreversereversed string.

Definition at line 41 of file reverse.c.

void reverseString2Binary ( Uchar s,
Uint  len,
Uchar sreverse,
Uint  revLength 
)

Reverses a string bit by bit and returns a new bit string with the reversed bits.

Parameters
[in]sstring to reverse.
[in]lenlength of the string to reverse.
[out]sreversereversed string.
[in]revLengthlength of the reversed string.

Definition at line 56 of file reverse.c.