00001 #include <opie2/oprocess.h> 00002 #include <stdio.h> 00003 00004 using namespace Opie::Core; 00005 00006 int main( int argc, char** argv ) 00007 { 00008 printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) ); 00009 printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) ); 00010 00011 return 0; 00012 } 00013
1.4.2