C program for using modulo operator, finding if number is dividable and print remainder.
The remainder operator (otherwise known as the modulo operator) % is a binary operator (i.e., takes exactly … Read more
The remainder operator (otherwise known as the modulo operator) % is a binary operator (i.e., takes exactly … Read more
As we have seen in “C program for using modulo operator, finding if number is dividable and … Read more
The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() … Read more
As we seen in previous post “Understanding Very Minimal C Program and its execution in Ubuntu Linux” … Read more
Signals are a limited form of inter-process communication (IPC), typically used in Unix, Unix-like, and other POSIX-compliant … Read more
The file mode, stored in the st_mode field of the file attributes, contains two kinds of information: … Read more
In this simple C program, we demonstrate how to use Remove System call from C to delete … Read more
Sometime we need to monitor some directory or file for some changes in it and based on … Read more
Most of the times we downloaded some files from the internet, and we also see people provides … Read more
If we want to see whether certain file exists or not before doing some operation like read/write … Read more
Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more
Lets say we want to read the contents of some file and want to operate on these … Read more