C Language

strerror in C

In this blog post, you will learn what is the strerror in C and how to use the strerror() function in C with the help of programming examples.   What is strerror() in C? The strerror function maps errnum to an error-message string. Typically, the values for errnum come from errno, but strerror can map […]

strerror in C Read More »

strcoll in C

In this blog post, you will learn what is the strcoll() and how to use the strcoll() function in C to compare two strings with the help of programming examples.   What is strcoll() in C? The strcoll() function is declared in <string.h> header file. It compares the string pointed to by s1 to the

strcoll in C Read More »

strcpy in C

In this blog post, you will learn what is the strcpy() and how to use the strcpy() function in C to copy strings with the help of programming examples.   What is strcpy in C? The strcpy function copies the string pointed to by src (including the terminating null character) into the array pointed to

strcpy in C Read More »

memccpy in C

In this blog post, you will learn about the memccpy in C with the help of programming examples. The memccpy function copies characters from the object pointed to by src into the object pointed to by dest. The copies of characters are stopped after any of the next two conditions are satisfied: 1. The first

memccpy in C Read More »

logical operators in C

In this blog post, you will learn equality and logical operators in C programming with the help of example code. So let’s first understand what logical operators are. The logical operators perform logical operations on given expressions. They use to evaluate two or more conditions. The result of the logical operations yields 1 or 0

logical operators in C Read More »