Librenix  
(Show all Tutorial articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Tutorial: C Function Pointers

Up
vote
Down

I use function pointer arrays in the GPL'd Space Tyrant game server project. The articles about it are a little old but the software development has continued. It's actually running here.
Function Pointers are pointers, i.e. variables, which point to the address of a function. You must keep in mind, that a running program gets a certain space in the main-memory. Both, the executable compiled program code and the used variables, are put inside this memory. Thus a function in the program code is, like e.g. a character field, nothing else than an address. It is only important how you, or better your compiler/processor, interpret the memory a pointer points to.
 read more | mail this link | score:7047 | -Ray, September 30, 2006 (Updated: April 26, 2011)
More Programming articles...

Abstract Art Prints for Sale

coding headlines

No Starch Press has published my Perl One-Liners book!

Develop your own Raspberry Pi OS

Unix: Shell Script Wrapper Examples

Introduction to Perl one-liners

bash scripting: Looping through a list

String matching in regular expressions

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin