diff options
Diffstat (limited to 'uffi/ptrbits.c')
-rw-r--r-- | uffi/ptrbits.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/uffi/ptrbits.c b/uffi/ptrbits.c new file mode 100644 index 0000000..17f7bf8 --- /dev/null +++ b/uffi/ptrbits.c @@ -0,0 +1,11 @@ +/* Prints the number of bits in a pointer. + * Copyright (c) 2006 Kevin Rosenberg + */ + +#include <stdio.h> + +int main() { + char *p; + printf ("%d\n", 8*sizeof(p)); + return (0); +} |