Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!husc6!cca!mirror!datacube!ftw From: ftw@datacube.UUCP Newsgroups: comp.lang.c Subject: Re: C Declarations Message-ID: <102600018@datacube> Date: Thu, 29-Oct-87 13:59:00 EST Article-I.D.: datacube.102600018 Posted: Thu Oct 29 13:59:00 1987 Date-Received: Wed, 4-Nov-87 07:12:48 EST References: <4023@watdcsu.waterloo.edu> Lines: 36 Nf-ID: #R:watdcsu.waterloo.edu:-402300:datacube:102600018:000:1127 Nf-From: datacube.UUCP!ftw Oct 29 13:59:00 1987 nfrost@watdcsu.UUCP writes: > Help! I'm having trouble with declarations in C. Not surprising. They can be, uh, terse ;-) Can you get comp.sources.misc? You might look in there for a program called "cdecl". cdecl is an interactive program that takes command of the form: explain char (*signal())() which would print the result: declare signal as function returning pointer to function returning char You could also type in the above response as a command to cdecl, and it will print out the corresponding C declaration. Some folks would be quick to point out that I have declared signal incorrectly. This is because the version of cdecl that I have doesn't yet understand void types. Cdecl is a wonderful program for learning to understand how to compose and decompose a C declaration. Send me E-mail if you can't get comp.sources.misc Farrell T. Woods Datacube Inc. Systems / Software Group 4 Dearborn Rd. Peabody, Ma 01960 VOICE: 617-535-6644; FAX: (617) 535-5643; TWX: (710) 347-0125 UUCP: ftw@datacube.COM, ihnp4!datacube!ftw {seismo,cbosgd,cuae2,mit-eddie}!mirror!datacube!ftw