Source Code

the Source of your life


C language

[C Language] How to extract substring between two words

How to use extractContent function: Result of TestFunction:

[C Language] Static Queue of string

In this post I show you how implement a very simple static queue without using memory allocation Global delaration Initialization a Queue Use EnqueueQ function to add a item at the end of queue or DequeueQ function to remove oldest... Continue Reading →

[C Language] How to set, reset and get a bit

Setting a bit Use the bitwise OR(|) operator to set a bit, this function return 1 if value was changed Clearing a bit This function test a bit passed , if it is up execute a difference between Value and... Continue Reading →

[C Language] How to Left, Mid and Right string

In this post I show you how to implement Left,Mid and Right Functions with unique function to extrapolate part of source string. These are the defines to use with function Left, Mid and Right Function Demonstration how to use thifunction... Continue Reading →

[C Language] Split String

In this article I show you how to implement a Split string by a specific Delimiter and pass desiderated substring into dest string. Split Function: How it works: Result of democode: See also:Split and Array of Strings

[C Language] How to PadLeft and PadRight a String

PadLeft and PadRight Function

[C Language] How to Replace string

This function returns the number of substitutions and a new string with All replacements made to the original string.  

[C Language] How to trim a string

[C language] How to split a string by a specific character and pass it into string array

How to use this function Split Function

Create a free website or blog at

Up ↑