C program for finding remainder from floating point division using fmod

As we have seen in “C program for using modulo operator, finding if number is dividable and … Read more

C program to print files in current directory in reverse order

The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() … Read more

Understanding execution and debugging of C program using ltrace

As we seen in previous post “Understanding Very Minimal C Program and its execution in Ubuntu Linux” … Read more

Understanding Linux Signals with simple C program

Signals are a limited form of inter-process communication (IPC), typically used in Unix, Unix-like, and other POSIX-compliant … Read more

Identify / Test file types in Linux using C program stat API

The file mode, stored in the st_mode field of the file attributes, contains two kinds of information: … Read more

C program to delete a file – remove API

In this simple C program, we demonstrate how to use Remove System call from C to delete … Read more

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 check Little or Big Endian machine

Endianness is the order or sequence of bytes of a word data. Endianness is of two types … 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