Return to BSD News archive
Xref: sserve comp.lang.c:36832 comp.unix.bsd:9061 Newsgroups: comp.lang.c,comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!flamingo.ece.cmu.edu!woyansky From: woyansky@flamingo.ece.cmu.edu (George J. Woyansky) Subject: Re: Segmentation faults Message-ID: <BzGHo4.AK9@fs7.ece.cmu.edu> Originator: woyansky@flamingo.ece.cmu.edu Sender: news@fs7.ece.cmu.edu (USENET News System) Reply-To: woyansky@flamingo.ece.cmu.edu (George J. Woyansky) Organization: Electrical and Computer Engineering, Carnegie Mellon References: <1gricmINNsl@ub.d.umn.edu> Date: Fri, 18 Dec 1992 13:04:50 GMT Lines: 30 |> |> |> Hi, |> Why is the following code producing a segmentation fault??? |> I am compiling this code on an Encore Multimax running UMAX 4.3 Unix. |> Please send replies to CBUSCH@ub.d.umn.edu. |> [OK frags deleted] |> |> void writexy(x,y,s) |> { |> printf("\33[%d;%dH%s",y,x,s); |> } |> Hmm. Maybe here? You need int x,y; char s[]; after your function declaration. -George Woyansky ECE Dept., Carnegie Mellon University Pittsburgh, PA 15213