-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPGS.cpp
More file actions
56 lines (38 loc) · 963 Bytes
/
PGS.cpp
File metadata and controls
56 lines (38 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* PGS.cpp -- the controlling interface for PGS
*
* C ChemicalDevelopment 2017
* Part of the PGS project.
* <http://pgs.chemicaldevelopment.us/>
*
* Authors:
* Cade Brown <cade@cade.site>
*
* PGS is free software; you can redistribute it and/or modify
* it under the terms of the GNU GPL v3 or later, at your choice.
* See details in LICENSE.txt
*
*/
#include <iostream>
using namespace std;
#include "PGSConfig.hpp"
#include "primesieve.hpp"
#include <iostream>
#include <fstream>
#include <unistd.h>
int main(int argc, char ** argv) {
char c;
opterr = 0;
while ((c = getopt (argc, argv, "a:b:c:")) != (char)-1)
switch (c) {
case 'a':
break;
case '?':
cout << "Unknown option `" << optopt << "'.\n" << endl;
return 1;
default:
cout << "Error while parsing arguments" << endl;
exit (1);
}
return 0;
}