Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

C Basics
History of C
Characteristics of C
C Program Structure
Variables
Defining Global Variables
Printing Out and Inputting Variables
Constants
Arithmetic Operations
Comparison Operators
Logical Operators
Conditionals
The if statement
The ? operator
The switch statement
The while statement
The do-while statement
Arrays and Strings
Single and Multi-dimensional Arrays
Strings
Functions and Arrays
Function Prototyping
Further Data Types
Structures
Unions
Coercion or Type-Casting
Enumerated Types
Static Variables
Pointers
What is a Pointer?
Pointer and Functions
Arrays of Pointers
Multidimensional arrays and pointers
Static Initialisation of Pointer Arrays
Pointers and Structures
Common Pointer Pitfalls
Dynamic Memory Allocation and Dynamic Structures
Malloc, Sizeof, and Free
Calloc and Realloc
Linked Lists
Full Program: queue.c
Advanced Pointer Topics
Pointers to Pointers
Command line input
Pointers to a Function
Bit Fields
The C Preprocessor
#define
#undef
#include
#if -- Conditional inclusion
Preprocessor Compiler Control
Other Preprocessor Commands
Advantages of using UNIX with C
Using UNIX System Calls and Library Functions
Arithmetic Functions
Random Numbers
String Conversion
Searching and Sorting
Mathematics: <math.h>
Math Functions
Math Constants
Input and Output (I/O):stdio.h
Reporting Errors
Streams
Basic I/O
Formatted I/O
scanf
Files
sprintf and sscanf
Low Level I/O
String Handling: <string.h>
Basic String Handling Functions
Character conversions and testing: ctype.h
Memory Operations: <memory.h>
File Access and Directory System Calls
Directory handling functions: <unistd.h>
File Manipulation Routines: unistd.h, sys/types.h, sys/stat.h
Time Functions
Basic time functions
Example time applications
Running UNIX Commands from C
execl()
fork()
wait()
exit()
Exerises
Interprocess Communication (IPC), Pipes
Piping in a C program: <stdio.h>
IPC:Interrupts and Signals: <signal.h>
Sending Signals -- kill(), raise()
Signal Handling -- signal()
Other signal functions
IPC:Message Queues:<sys/msg.h>
Initialising the Message Queue
IPC Functions, Key Arguments, and Creation Flags: <sys/ipc.h>
Controlling message queues
Sending and Receiving Messages
POSIX Messages: <mqueue.h>
Example: Sending messages between two processes
Some further example message queue programs
IPC:Semaphores
Initializing a Semaphore Set
Controlling Semaphores
Semaphore Operations
POSIX Semaphores: <semaphore.h>
Some further example semaphore programs
IPC:Shared Memory
Accessing a Shared Memory Segment
Attaching and Detaching a Shared Memory Segment
Example two processes comunicating via shared memory: shm_server.c, shm_client.c
POSIX Shared Memory
Mapped memory
Some further example shared memory programs
0 of .
Results for:
No results containing your search query
P. 1
Clanguagebook

Clanguagebook

Ratings: (0)|Views: 47|Likes:
Published by kvamsee11

More info:

Published by: kvamsee11 on Oct 06, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/02/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 20 are not shown in this preview.
You're Reading a Free Preview
Pages 24 to 39 are not shown in this preview.
You're Reading a Free Preview
Pages 43 to 63 are not shown in this preview.
You're Reading a Free Preview
Pages 67 to 81 are not shown in this preview.
You're Reading a Free Preview
Pages 85 to 197 are not shown in this preview.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->