I would like to write a program which after putting in terminal :
gcc task.c -o task ps aux | ./task
will print %CPU data as a stdout.