summaryrefslogtreecommitdiff
path: root/examples/opiecore/oprocessdemo/oprocessdemo.cpp
Unidiff
Diffstat (limited to 'examples/opiecore/oprocessdemo/oprocessdemo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opiecore/oprocessdemo/oprocessdemo.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/opiecore/oprocessdemo/oprocessdemo.cpp b/examples/opiecore/oprocessdemo/oprocessdemo.cpp
new file mode 100644
index 0000000..c5fc328
--- a/dev/null
+++ b/examples/opiecore/oprocessdemo/oprocessdemo.cpp
@@ -0,0 +1,13 @@
1#include <opie2/oprocess.h>
2#include <stdio.h>
3
4using namespace Opie::Core;
5
6int main( int argc, char** argv )
7{
8 printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) );
9 printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) );
10
11 return 0;
12}
13