Tag Archives: C program

wcat : A GNU cat implementation

A home made implementation of the GNU cat command Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , , | 2 Comments

An ID3v1 Tag Parsing Library

A small ID3v1 tag parsing library. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , , | 1 Comment

Synchronization Safe Integer

Synchronization safe integers are related to ID3v2 tags. ID3v2 tags has a dynamic structure where the length of the tag is variable and inside the tag, there can stay a lot of frames which again can be of dynamic sizes. … Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , | 1 Comment

Hero’s Method : Evaluating square root of a real number

A floating point number is given. the task is to evaluate the value of its square root. We will discuss how to find the square root of a real number in this post, and also present a C Language code which does this job. The value of the root will be evaluated with the Hero’s method. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | 2 Comments

Little and Big Endian conversion

A C code to convert between little-endian and big-endian. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , | 1 Comment

All Combinations Without Repetitions

A method is to generate all Combinations of a set with distinct elements is described, then it’s C Language implementation is presented. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | Leave a comment

Make a website block virus

A simple C Language program to block websites in a target Microsoft Windows system Continue reading

Posted in Computer Science, Others | Tagged , , , , | 16 Comments

r-Permutations With Repetitions

A method is to generate all r-Permutations of a set with distinct elements is described, then it’s C Language implementation is presented. Also a 20 Digit Decimal counter is coded to show a use, which can also be extended to a ‘n’ Digit Decimal counter. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | 4 Comments

Swapping Values

Developing Algorithm to interchange of the values stored in two given variables. The exchanging of the values between two given variables is commonly known as value “swap” and the process is known as “swapping”.This can be archived by various approaches. Below, we will discuss about two different approaches with a total of three processes, and see their benefits and pitfalls. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , | 1 Comment

Generating Twin Primes, Cousin Primes and Sexy Primes

A solution to generate twin prime numbers: A twin prime is a set of two prime numbers whose absolute difference is 2. Let p1 and p2 primes such that p2 – p1 = 2, then the set { p1 , p2 } are twin primes. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | 2 Comments