mikeage.net Logo
mikeage.net/tag/c/

mikeage.net @ ב׳ אייר תשע״ז

Posts Tagged ‘C’

SerCat released

‍‍כ״ח ניסן תשס״ט - Wednesday, April 22nd, 2009

I've released a replacement for both LogSer and ToSer called SerCat. It supports both stdin and stdout, and provides very basic terminal emulation (no arrow keys or functions keys yet).

PingTunnel Improvements: Win32 & Syslog

‍‍ט״ז טבת תשס״ט - Monday, January 12th, 2009

For anyone interested in clever networking hacks, I strongly advise checking out ptunnel. This software package allows you to tunnel any TCP (such as SSH) over a ICMP (i.e., ping). Since even the most restrictive firewalls (whether corporate, Wifi (don't steal...) or other) usually let ICMP traffic through, this little piece of code can let you access anything you want.
(more…)

Identifying Big Endian or Little Endian Progmatically

‍‍ה׳ מרחשון תשס״ז - Friday, October 27th, 2006

Most (99%+) of microprocessors available to the consumer and/or embedded market are either Big Endian or Little Endian; this almost never actually matters. However, sometimes one needs to write endian specific code. Here's how to have code identify if it's running on a big endian or little endian machine:
(more…)

Duff's Device

‍‍ד׳ מרחשון תשס״ז - Thursday, October 26th, 2006

No C programmer can call himself (or herself) a real programmer without having seen (and been amazed by) Duff's Device. It was invented as a more efficient alternative to regular loop unrolling used in copying bytes from memory to a register (each byte went to the same address in memory), by handling the case when there are "leftover" bytes after a full unroll.
(more…)

Dividing Integers (& Casting Precedance)

‍‍כ״ה תשרי תשס״ז - Tuesday, October 17th, 2006

Quiz:
What does the following code print:

int i,j;
float k;
i = 5;
j = 2;
k = i/j;
printf("%f\n",k);

(more…)

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
Recent Images
Visitors
Clustermap

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 02:11 CST

Memory(TRUE): 2097152/2097152
Memory(FALSE): 1810128/1819672