tGet CWD modifications - sphere - GPU-based 3D discrete element method algorith… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit a748a4672165f93a544a89f716782c325deb5c3a | |
parent 46fe3e5726678846b72692a15f0c2abea5ff1bf9 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 23 Aug 2012 10:20:07 +0200 | |
Get CWD modifications | |
Diffstat: | |
M src/main.cpp | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/src/main.cpp b/src/main.cpp | |
t@@ -57,9 +57,9 @@ int main(int argc, char *argv[]) | |
// Read path to current working directory | |
char *cwd; | |
- cwd = getcwd (0, 0); | |
- if (! cwd) { // Terminate program execution if path is not obtained | |
- fprintf (stderr, "getcwd failed: %s\n", strerror (errno)); | |
+ cwd = getcwd(0, 0); | |
+ if (!cwd) { // Terminate program execution if path is not obtained | |
+ cerr << "Error: getcwd failed: " << strerror(errno) << '\n'; | |
return 1; // Return unsuccessful exit status | |
} | |