From 555b999359a5aad999eaaf48632ce85f25125b85 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 29 Jan 2005 14:18:51 +0000 Subject: examples appear here --- (limited to 'examples/opiecore/oprocessdemo/oprocessdemo.cpp') 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 @@ +#include +#include + +using namespace Opie::Core; + +int main( int argc, char** argv ) +{ + printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) ); + printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) ); + + return 0; +} + -- cgit v0.9.0.2