chiark / gitweb /
really edgewise vertex displacement - new calculations, experimental
[moebius2.git] / nprocessors.c
1 /*
2  * prints number of processors
3  */
4
5 #include <unistd.h>
6
7 #include "common.h"
8
9 int main(int argc, char **argv) {
10   if (argc!=1) fail("usage: nprocessors\n");
11   long sc= sysconf(_SC_NPROCESSORS_ONLN);
12   if (sc==-1) diee("nprocessors: sysconf failed");
13   printf("%ld\n",sc);
14   flushoutput();
15   return 0;
16 }