home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!relay!relay2!afterlife!adm!news
- From: karron@karron.med.nyu.edu (Dan Karron (karron@nyu.edu))
- Newsgroups: comp.sys.sgi
- Subject: assigning pointer values in dbx/edge...
- Message-ID: <34739@adm.brl.mil>
- Date: 17 Dec 92 18:53:40 GMT
- Sender: news@adm.brl.mil
- Lines: 47
-
-
- I have a bad pointer in an array.
-
- I would like to zero out that value so that the software
- skips over it.
-
- int *p,**pp,***ppp;
-
- ppp=Some3darray;
-
- if(!ppp)
- return; /* don't even start */
-
- for(i=0;i<N;i++)
- {
- pp=ppp[i];
-
- if(!pp)
- continue; /* skip empty parts */
-
- for(j=0;j<N;j++)
- {
- p=pp[j];
-
- if(!p)
- continue;
- DoItNow(p);
- }
- }
-
-
- Now there is a bad address at pp[j], and I just
- want to zero it out and continue through the array.
-
- Dbx won't let me do
-
- assign pp[j]=0x00000000, or something like that.
-
- How can I stuff a value in the pointer array ?
-
- Dan.
-
- | karron@nyu.edu (e-mail alias ) Dan Karron, Research Associate |
- | Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center |
- | 560 First Avenue Digital Pager <1> 212 397 9330 |
- | New York, New York 10016 <2> 10896 <3> <your-number-here> |
- ``Too busy doing to write about it, too busy writing to do anything about it.''
-