Tag: C

Passing Arrays as Parameter in C

Short answer: you can’t but yes, you can! This is an endlessly recurring question in many groups on the Internet. Today (2016/01/14) Google has 171 Million hits. This article answers the question and sheds some light on arrays in C. In the second part below I’ll discuss two-dimensional arrays as well. IMO, arrays are the …

Continue reading

Learning C // Part III

After doing another course in C programming there is a new lesson. There are some hints on programming and most of them apply to any language, not just C. The following rules are recommendations which are true in most cases (but not all). You might also be interested in reading part I and part II …

Continue reading

Calculating Fractals With Integer Operations

It was in the late ’80s when I started to become interested in fractals. At the time then computers very unbelievable slow compared to what we have today thus I tried to speed up the algorithms in several ways. This article is about using integer operations to calculate fractal images, more specifically I’ll explain how …

Continue reading

Smrender — State of Development Report

Smrender is a powerful, flexible, and modular rule-based rendering engine for OpenStreetmap data. Its primary development goal was and still is to develop a renderer for paper nautical charts. Because of its very generic and modular software design it can be used for charts of any map style and it is also perfectly suitable for …

Continue reading

Learning C // Part 2

Within the last days I read many questions about C on Stackoverflow. Most of them are typical beginners issues struggling with arrays and pointers. Some time ago I wrote this article about »Learning C« which suggests some basic statements. Based on these Stackoverflow issues I wrote some additional statements which should improve your way of …

Continue reading

p = &(*p)->next; // Learning C

Looking back on 25 years of experience in C programming I consider C still to be the queen of languages to write complex, fast, and powerful programs although there are many other powerful new languages today. C++ is even more powerful in several applications but it bears the risk for novice users who are familiar …

Continue reading

DNS/UDP to TCP Translator/Converter

Although there are some discussions found on the web on how to force DNS to use TCP instead of UDP, there seems to be no real solution. And in most cases there is actually no need for such a conversion. There are also many people asking if BIND offers such a special mode and I …

Continue reading

Panorama Chart

I am currently working on algorithms for placement of captions on charts. I am testing and implementing some methods. One of them works by sampling the desired area of placement in a circle around the origin of the caption. A premature version of this is already implemented into Smrender since one of the early releases. …

Continue reading

Smrender Presented at the Linuxwochen Vienna

Originally, I intended to give this posting the title “Anything that can go wrong…” but I decided that Smrender and my talk is more important than Murphy’s law. But stay tuned! You will read what happend. Yesterday I gave a talk about Smrender at the Linuxwochen 2012 in Vienna. Three things happened the first time. …

Continue reading

C Source Code Analyzer for Graphviz

I am currently working on a graph based visualization tool for the output of an i386 emulator. The basic idea is to do some kind of intelligent malware analysis and behavior prediction. I experimented a little bit and suddenly got the idea to do some kind of source code graphing of some of my programs. …

Continue reading