| delorie.com/archives/browse.cgi | search |
| Date: | Wed, 18 May 94 14:32:14 EDT |
| From: | peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) |
| To: | SGW46959M021 AT DAFFY DOT MILLERSV DOT EDU |
| Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Subject: | Re: dirent probs. |
| Reply-To: | babcock AT cfa DOT harvard DOT edu |
> Anybody know how to implement this code so that it doesn't crash (pointer > segmentation violation) after the last entry in the directory is printed? > DATA *dat; > [remainder of code deleted] dat seems to be an undefined pointer; I don't see any memory allocated for it to point at so the line dat->ff = f; clobbers some random core location.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |