Path: utzoo!attcan!uunet!mcsun!ukc!tlg From: tlg@ukc.ac.uk (T.L.Goodwin) Newsgroups: comp.lang.c Subject: Re: #DEFINEs and how to process them out Message-ID: <2362@ukc> Date: 13 Dec 90 12:41:47 GMT References: <11085@ur-cc.UUCP> Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 21 From article <11085@ur-cc.UUCP>, by gest_ss@uhura.cc.rochester.edu (Gavin Stark): > Question: > > How do I get the following effect: I want a program to scan > through my C source and process the #ifdef statements. Like the > following > > [ example deleted ] Under UNIX: cc -E file.c under VMS: cc file.c /preprocessor_only=sys$output sends what you require to the standard output. Sending it to a file is left as an exercise for the reader... Tim.