|
SDDS ToolKit Programs and Libraries for C and Python
|
Implements a simple string compression utility.
This file provides the compressString function, which removes consecutive duplicate characters from a string when those characters appear in a reference string. It is typically used to collapse runs of whitespace or other repeated characters.
Definition in file compress.c.
#include "mdb.h"#include <ctype.h>Go to the source code of this file.
Functions | |
| char * | compressString (char *s, char *t) |
| Eliminates repeated occurrences of characters in string t from string s. | |
| char * compressString | ( | char * | s, |
| char * | t ) |
Eliminates repeated occurrences of characters in string t from string s.
This function removes consecutive duplicate characters in string s that are present in string t.
| s | Pointer to the string to be compressed. The string is modified in place. |
| t | Pointer to the string containing characters to remove from s. |
s. Definition at line 33 of file compress.c.