devxlogo

August 7, 2003

Find an Offset into a Structure

Here’s the code: #define offset(a,b) ((int) (&( ((a*)(0)) -> b))) Step by step, here’s what it does: Type-cast 0, or NULL, into a pointer of type a. So a must

Produce a Hex Dump of the Contents of a URL

This program opens connection with a specified URL and hex-dumps the contents received from an associated input stream. Use this to find out what’s going on with your browser. public

Book Excerpt: Murach’s SQL for SQL Server

hy learn SQL? First, because most database programmers would be better programmers if they knew more about SQL. Second, because SQL programming is a valuable specialty in itself. And third,