C program to verify the integrity of a file with md5 checksum

Most of the times we downloaded some files from the internet, and we also see people provides … Read more

C program to concatenate two strings using strcat

The strcat() function appends the src string to the dest string, overwriting the terminating null byte (‘\0’) … Read more

Check if a File Exists in C

If we want to see whether certain file exists or not before doing some operation like read/write … Read more

C program to get current username of Linux application

cuserid() returns a pointer to a string containing a username associated with the effective user ID of … Read more

Debugging using C macros __FILE__ and __func__ and __LINE__

Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more

C program to read the contents of a file into character buffer

Lets say we want to read the contents of some file and want to operate on these … Read more

How to resolve: error: initializer element is not constant

Sometimes during complex programing, there are chances we make some mistakes during hurry to write and complete … Read more

Error Handling in C programs using errno, perror and strerror

The perror() function produces a message on standard error describing the last error encountered during a call … Read more

Understanding ARP (Address Resolution Protocol) basics

The MAC address is how machines on a subnet communicate. When machine A sends packets to another … Read more

Solved: compilation error for ARM toolchain “undefined reference to `_exit'”

Our ARM toolchain was extracted at “/home/devlab/Desktop/helloworld/assembly/gcc-arm-none-eabi-10-2020-q4-major/” hence lets first try to add this toolchain to terminal … Read more