Tag Archives: Ansi C

Debugging C with GDB

Posted by Pour Raphael Date: 2018-02-06

Introduction As long as the gcc tells you whats wrong (including the -Wall Flag) you can at least barely locate the source of the error. What about Segmentation Faults which are hard to detect during compilation time? The GNU Debugger may give you a clue! The GNU Debugger (short: gdb) is a command line tool […]

Inside a C float

Posted by Pour Raphael Date: 2018-01-12

Handling with floats can  be irritating while it is one of the non-integral datatypes. This means that the displayed value (e.g. via printf(“%f”,somefloat); )  is different to the one actualy stored in memory. This is caused by IEEE 754 To get the real values we have to go inside the float. A cast wouldn’t do the […]