Tag Archives: C

cast from pointer to integer of different size – cast to pointer from integer of different size

On a 32-bit system my code compiled without any problem. On a 64-bit system I get the warnings: warning: cast from pointer to integer of different size warning: cast to pointer from integer of different size It turned out the … Continue reading

Posted in C | Tagged , , , , , , | 2 Comments

Multitasking: PHP in parallel

Update: I have recently solved the issue of multitasking in PHP with a standalone application, The Fat Controller, which handles multitasking for you. Read more here. Like most websites, glogster.com periodically sends out an e-newsletter to its user-base.    This is … Continue reading

Posted in C, PHP | Tagged , , , , | 1 Comment

A Simple Daemon in C

(Before diving into creating your own daemon, you might want to take a look at the Fat Controller which is a program which can daemonise anything. If you need to daemonise something, run something repeatedly or parallelise something, then it … Continue reading

Posted in C | Tagged , , , , , , , , | 11 Comments

Linked Lists in C: push, pop, shift and unshift

A sound understanding of linked lists and how to use them is a prerequisite for programming in C, or indeed most programming languages for that matter.   Most scripting languages provide built-in helper functions for dealing with arrays and linked lists, … Continue reading

Posted in C | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment