File: arch.cpp

package info (click to toggle)
regina-normal 7.4.1-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 154,244 kB
  • sloc: cpp: 295,026; xml: 9,992; sh: 1,344; python: 1,225; perl: 616; ansic: 138; makefile: 26
file content (19 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/**
 * Regina - Software for low-dimensional topology
 * Administrative utilities
 *
 * This program is built and run by "make env".
 * It displays basic information about the underlying OS and architecture.
 */

#include <iostream>
#include <sys/types.h> // for ssize_t

int main() {
    std::cout << "sizeof(int) = " << sizeof(int) << std::endl;
    std::cout << "sizeof(long) = " << sizeof(long) << std::endl;
    std::cout << "sizeof(size_t) = " << sizeof(size_t) << std::endl;
    std::cout << "sizeof(ssize_t) = " << sizeof(ssize_t) << std::endl;
    return 0;
}