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

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 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 Identify size of a file using Linux stat system call

This program uses “stat” system call to read the file size. In this post, we demonstrate with … 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

Print Current Time in C

Print current time in C

We hope this tutorial is of help. In case you have any other suggestions or questions, do … Read more

Linux Uptime in C

How to check Linux uptime in C

We hope this tutorial is of help. In case you have any other suggestions or questions, do … Read more

Str to File in C

Str to File in C

We hope this tutorial is of help. In case you have any other suggestions or questions, do … Read more

Fwrite Structure in C

Frwite Structure in C

Subscribe our Rurban Life YouTube Channel.. “Rural Life, Urban LifeStyle”