String functions

Some very common used string function in applications. Below you'll find descriptions on how they can be used in your application.

1. Sources of all string functions

To be able to use the string functions, include the following header file and source file in your project.

Header file strfunc.h (source)
Source file strfunc.c (source)

2. Functions to remove leading and trailing characters

The Following functions can be used to remove specific leading and trailing characters.

TrimRight() Removes the specific trailing characters from the string.
TrimLeft() Removes the specific leading characters from the string.
Trim() Removes the specific leading and trailing characters from the string.

3. Function to center the string

The following function can be used to center a string.

Center() Centers the input string.