home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18632 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.0 KB

  1. Xref: sparky comp.lang.c:18632 comp.unix.bsd:10376
  2. Newsgroups: comp.lang.c,comp.unix.bsd
  3. Path: sparky!uunet!mcsun!Germany.EU.net!logixwi!jpm
  4. From: jpm@Logix.DE (Jan-Piet Mens)
  5. Subject: Re: Segmentation faults
  6. Organization: Logix GmbH, Wiesbaden, Germany
  7. Date: Fri, 18 Dec 1992 13:42:25 GMT
  8. Message-ID: <1992Dec18.134225.20548@Logix.DE>
  9. References: <1gricmINNsl@ub.d.umn.edu>
  10. Lines: 19
  11.  
  12. In <1gricmINNsl@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:
  13. >    Why is the following code producing a segmentation fault???
  14. >I am compiling this code on an Encore Multimax running UMAX 4.3 Unix.
  15.  
  16. Doesn't matter where you compile it is bad anyway...
  17.  
  18. void writexy(x,y,s)
  19. int x, y;
  20. char *s;                /* OTHERWISE DEFAULTS TO int !!! */
  21. {
  22.    printf("\33[%d;%dH%s",y,x,s);
  23. }
  24.  
  25. [ BTW, how about termcap/terminfo ? ]
  26. -- 
  27.     __  _____   __  __ 
  28.    |  ||  _  \ |  \/  |    Logix GmbH                             jpm@Logix.DE
  29.  __|  ||  ___/ |      |    Moritzstrasse 50, +49-611-309797   jpm@logixwi.UUCP
  30. |_____||__|    |__||__|    D-6200 Wiesbaden  ...!uunet!mcsun!unido!logixwi!jpm
  31.