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

How to check if File Exists in JAVA ?

If you want to check whether certain file is present or not in your disk before proceeding … 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

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

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 compile C program for X86 Desktop and Embedded Hardware ?

If we consider that we are working on two platforms,1. x86 – 32 or 64 bit i.e. … Read more