home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11590 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!utrcu1!infnews!infnews!fijma
  3. From: fijma@cs.utwente.nl (Duco Fijma)
  4. Subject: Catching Ctrl-C in GCC
  5. Message-ID: <1992Dec23.120652@cs.utwente.nl>
  6. Sender: usenet@cs.utwente.nl
  7. Nntp-Posting-Host: utis143
  8. Organization: University of Twente, Dept. of Computer Science
  9. Date: Wed, 23 Dec 1992 11:06:52 GMT
  10. Lines: 22
  11.  
  12. Hello,
  13.  
  14. I'am recompiling a piece of UNIX software under DOS using the GCC compiler (ANSI
  15. C source, not C++).
  16. The software catches ctrl-C presses using "signal". However, this does not work
  17. under the MS-DOS port of GCC. The file 'FUNCTIONS.DOC' even mentions that the 
  18. bodies of the functions in signal.h are empty. 
  19.  
  20. Can signal-handling be used? And, if not, how do I catch the ctrl-C key in another
  21. way?
  22.  
  23. Thanks,
  24.  
  25. Duco
  26.  
  27. --
  28.  
  29. Duco Fijma               tel. X31-53-893718
  30. University of Twente     fax. X31-53-893811 
  31. P.O. Box 217             internet: fijma@cs.utwente.nl
  32. 7500 AE  Enschede        
  33. The Netherlands          | No ugly pictures in this sig! |
  34.