Segmentation fault

Derek Martin dmartin at
Tue Feb 8 22:26:12 EST 2000

On Mon, 7 Feb 2000, Jerry Feldman wrote:

> You call rest_of_string(temp, i), in a for loop where i varies from 0
> to (len - 1). In the final case:

Right, so long as temp is allocated large enough to hold the string and
the terminating null, this is not a problem. I went back and fixed the
malloc, and the problem is solved.  I found the explanatory part of your
message a little hard to follow, but it sounded like you're still not
convinced of the correctness of the rest_of_string() function.  I'll
discuss that more with you offlist.

Again, thanks for your help! It fixed the problem.

"Quis custodiet ipsos custodes?"    "Who watches the watchmen?" 
-Juvenal, Satires, VI, 347 

Derek D. Martin      |  Senior UNIX Systems/Network Administrator
Arris Interactive    |  A Nortel Company
derekm at  |  dmartin at

Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at (Subject line is ignored).

More information about the Discuss mailing list