File: ptrbits.c

package info (click to toggle)
cl-sql 6.7.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 3,552 kB
  • sloc: lisp: 24,508; xml: 17,898; makefile: 487; ansic: 201; sh: 39; cpp: 9
file content (11 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
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);
}