Tag Archives: C/C++

Listing all predefined values in GCC

If you need to check what built-in macros are already defined on the platform or version of GCC you are using you can use the following command to list all of them. Advertisements

Posted in Linux | Tagged | Leave a comment

Including optional debugging code in ‘C’

A short post showing my preferred way of including optional debugging code in ‘C’ in a way that is compatible with ANSI ‘C’ compilers.

Posted in Programming | Tagged | Leave a comment

A (not so) minimal implementation of ‘cat’ in C

No particular reason but I needed something a little more complicated than the ubiquitous Hello World, so I opted for a minimal implementation of cat.

Posted in Programming | Tagged | Leave a comment

Installing GCC

If you want to use the GNU C Compiler then as a minimum you need to install the compiler, help files (which you could argue are optional) and the runtime library.

Posted in Debian, Raspbian | Tagged , | Leave a comment

Password Generator

Personally I don’t like generated passwords but a little while ago I found myself wondering how difficult it would be to write a short bit of ‘C’ to generate a random password made up of three-letter groups consisting of a … Continue reading

Posted in Programming, Security | Tagged | 1 Comment

Installing Point Cloud Library

Recently I had to help someone get the Point Cloud Library and sample applications working under Linux using the Open NI Framework and a Microsoft Kinect for the XBOX 360. This isn’t exactly something you might want to do every … Continue reading

Posted in Hardware, Linux, Ubuntu | Tagged , | Leave a comment