#lang scribble/doc @(require scribble/manual) @title{Sizeof} Uses the C compiler and preprocessor to find the size of arbitrary C types. Yes, seriously. Caches results as much as possible, in memory, and as various 'librarylets' in ~/.plt-scheme/sizeof/. Pretty much all you do is @scheme[(sizeof "ctype" "include" "include" ...)] where "ctype" is the compiler's string representation of the type you want, and each "include" is the relative file name of an include file, minus the .h suffix. Since you're only getting the size of possibly macros, possibly typedefs, possibly structs, you should only need to specify include files, and not any additional C code.