Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!a.cs.uiuc.edu!m.cs.uiuc.edu!wsmith From: wsmith@m.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Portable uses of jmpbuf's Message-ID: <4700022@m.cs.uiuc.edu> Date: 11 Oct 88 03:39:00 GMT Lines: 15 Nf-ID: #N:m.cs.uiuc.edu:4700022:000:416 Nf-From: m.cs.uiuc.edu!wsmith Oct 10 22:39:00 1988 How do you portably pass a jmpbuf as a parameter to a C function? Some machines define a jmpbuf to be struct { stuff } , while others define a jmpbuf to be an array. In one case, an & is required, while in the other case it is not. My best solution was to define my own structure with one field of a jmpbuf and then always take the address. Is there a better way? Bill Smith uiucdcs!wsmith wsmith@cs.uiuc.edu