Category Archives for Code

C und C++ Code verschönern

Wer generell dazu neigt seinen Code nicht ganz Konventionsgetreu zu formatieren dem sei folgendes Tool ans herz gelegt: astyle Das Tool verschönert mit Leichtigkeit fast jeden noch so unlesbaren Code. Vor allem in meiner Tätigkeit als Tutor ist das ganz … Continue reading

30. November 2008 by Robert
Categories: Code | Tags: , | Leave a comment

dd

Ist ein prima Tool wenn es darum geht das Image eines Speichermediums auf ein anderes zu übertragen. Gestern wollte ich das Systemimage meiner NSLU von meinem alten iPod Nano auf einen neuen 4GB USB-Stick umziehen. Und anstatt alles komplett neu … Continue reading

23. November 2008 by Robert
Categories: Code, Gefunden | Tags: , , , | Leave a comment

Signalhandler

Mal 3 Zeilen um Signale zu verarbeiten. Wichtig ist hierbei das SIGKILL nicht blockierbar ist (SIGTERM übrigens auch nicht ;-) ) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <stdio.h> … Continue reading

23. October 2008 by Robert
Categories: Code | Tags: , | Leave a comment

C Variablen tauschen

Der Klassikertrick. Durch XOR Verknüpfungen eine Variable sparen. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include <stdio.h>   int main (int argc, char const *argv[]) { int a = 1; int … Continue reading

16. October 2008 by Robert
Categories: Code | Tags: , | Leave a comment

C

1 2 3 4 5 6 #include <stdio.h> int main (void) { printf("Ich bin jetzt offiziell C-Tutorn"); return 0; }

14. October 2008 by Robert
Categories: Code, Leben | Tags: , | Leave a comment

Newer posts →