Re: Memory !!!



On Thu, Jun 14, 2001 at 04:09:17PM +0530, Anil Kumar P - Roll No.98002 wrote:

I have a small problem
  I want to access a memory location assigned to a variable in program, in
another program ( a different process)
      For instance if in 1.c  we have
      main()
      {
              int p = 5;
              printf("%p",&p);
              getchar();
      }
      This program will print the address of p.
      Now I want to access the value of p in another program. Can anyone
tell me how to do this ?
use SysV IPC -- see LPG [libux priogramming guide] (www.linuxdoc.org).






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]