Search

Source Code

the Source of your life

Category

C language

[C Language] Function to return string

In this post I will show you two method to return a string from a generic function. First one method use a variable global as string Second one method, used an argument of a function as char pointer How this... Continue Reading →

Advertisements

[C Language] Bubble Sort how it works

Bubble sort is a simple sorting algorithm, it compares each pair of adjacent items and swaps them if they are in the wrong order, this passes must be repeated until no swaps are needed, for more detail: Click here How... Continue Reading →

[C Language] How to pass an Array of string to a Function

With this post I show you how to create an array of strings and how you can pass it to a function. This is result: another method, see also: Array Of Strings

[C Language] How to implement a List Of String

In this post I show you how to implement a list(static) of string without using memory allocation How to use it. Output Console windows See also:List of Queue and List Of Dictionary

[C Language] How to implement a Dictionary with Key(int) and Value(string)

A dictionary is a data structure that represents a collection of keys and values.…Pairs of data items that have a one-to-one association. In this post I show you how implement a very simple Dictionary with Key as integer and value... Continue Reading →

[C Language] How to extract substring between two words

How to use extractContent function: Result of TestFunction:

[C Language] Static Queue of string

A queue is a collection of data, in this collection the first element added(enqueue) to the queue, will be the first one to be removed this operation is named dequeue(Wikipedia). In this post I show you how implement a very... 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 →

Blog at WordPress.com.

Up ↑