ASCII to binary and /proc

From: Joseph (wutongjoe_at_hotmail.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 05:53:18 +0000 (UTC)

Hi all,

I was doing a assignment ,and I do not know if there is any lib or function
which could convert a ACSII char to binary number and vice versa.

and there is another question,is there any way to get the other process's
executable (filename)by only accessing the /proc dir ? like process1 access
the /proc and there's a dir with name 1394 (/proc/1394) ,how can I get the
filename of process PID 1394?(say,emacs ,here for example)

I have tried with
$cat status

but the "name" displayed is not the one I want(I run ./test.o ,but it
displays "gnome..." something,not "test.o")

Thanks a lot guys!!
Joseph