EmbLogic's Blog

Author Archives: deepanshusharma

HOW TO USE atoi() function for conversion of strings into integers……..

RCS file: atoi.c,v 3 Working file: atoi.c 4 head: 1.3 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 3; selected revisions: 3 11 description: 12 this program tells the use … Continue reading

Posted in Data Structures with C | Leave a comment

A typical memory representation of C program

A typical memory representation of C program consists of following sections. 1. Text segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. Heap A typical memory layout of a running process 1. Text Segment: A text segment … Continue reading

Posted in Data Structures with C | Leave a comment

how to give command line arguments to a self defined command created using shell scripting?

  this script uses two arguments given while using the command (script name) which it uses to replace $1 (first argument) $2 (second argument).

Posted in Shell Scripts | Leave a comment

Where Are the Linux Kernel Files?

The kernel file, in Ubuntu, is stored in your /boot folder and is called vmlinuz-version. The name vmlinuz comes from the unix world where they used to call their kernels simply “unix” back in the 60?s so Linux started calling … Continue reading

Posted in Project 1: A Linux Administration based Project | Leave a comment

how to interpret complex declarations in C

Complicated declarations in C Most of the times declarations are simple to read, but it is hard to read some declarations which involve pointer to functions. For example, consider the following declaration from “signal.h”. void (*bsd_signal(int, void (*)(int)))(int); Let us … Continue reading

Posted in Data Structures with C | Leave a comment

the process of booting in linux

The following are the 6 high level stages of a typical Linux boot process. 1. BIOS BIOS stands for Basic Input/Output System Performs some system integrity checks Searches, loads, and executes the boot loader program. It looks for boot loader … Continue reading

Posted in Uncategorized | Leave a comment

creating linked list using structures and function

RCS file: header.h,v Working file: header.h head: 1.10 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: created a header file including all predefined header files. learnt that header file “string.h” is … Continue reading

Posted in Data Structures with C | Leave a comment