Stat for file information

C program to read file properties using stat() function

Stat system call in Linux return information about a file, in the buffer pointed to by buf. … Read more

Stat for file information

C program to find file properties using stat() function

Stat() function in C is used to retrieve information about the file by accepting the filepath as … Read more

#ifndef in C

How to use #Ifndef directive in C program ?

#ifndef ( if not defined ) directive is used in C language for conditional execution of certain … Read more

C pre-processor error

Fixed : error: #elif with no expression

When we want to make a compile time decisions to enable some code and disable other, #ifdef … Read more

How to implement linked list in C programming ?

This programs shows a simple way to implement singly link list ( Singly link list is the … Read more

Fixed: has virtual functions but non-virtual destructor

If we have a C++ Class “MyLynxbee” declared in header file mylynxbee.h as below, and if we … Read more

Functions in C

Function in C programming is a group of statements which are separated from main task for the … Read more

How executable is created during compilation on Linux ?

This code is tested on Ubuntu . You may need to twick the script if you use a … Read more

How to resolve error : ” no buildable Go source files in “

Sometimes when we try to compile an unknown go package, we can see an error like “no … Read more

How to execute C code from go – c to golang binding ?

// If a Go source file imports “C”, it is using cgo. The Go file will have … Read more

How to call Assembly function from C code ?

In this post, we use ARM are reference architecture for writing the assembly code but the basic … Read more

How to implement stack in C programming ?

In continuation of demonstrating simple implementation of data structures, as we shown in our last post “How … Read more