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:5967 | -Ray, September 30, 2006 (Updated: April 26, 2011)
More Programming articles...

Buy Large Wall Art on Canvas

coding headlines

Unix: Shell Script Wrapper Examples

Bash: Use the Test Command for multiple aspects

Apache2, mod_rewrite tutorial: Redirect requests by device

Create native looking Firefox web apps

Sustitution with sed

Bash Functions

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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