summaryrefslogtreecommitdiff
path: root/examples/opiecore/oprocessdemo/oprocessdemo.cpp
blob: c5fc3286499f1eba5f02e245e9650477454d1ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <opie2/oprocess.h>
#include <stdio.h>

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;
}