VI Quick Introduction

1. Overview A text editor is a program that can be used to create and modify text files. One of the most popular editors on Unix systems (it is also available on Windows and many other platforms) is vi. 2. 5-Minute Introduction As a brief introduction to vi, go through the following: First, type vi x at the Unix prompt.…

Padding and Packing in C

Data structure alignment is the way data is arranged and accessed in computer memory. It consists of two separate but related issues: data alignment and data structure padding. When a modern computer reads from or writes to a memory address, it will do this in word sized chunks (e.g. 4 byte chunks on a 32-bit system) or larger. Data alignment…