Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re^2: Want a way to strip comments from a Message-ID: <2201@solo1.cs.vu.nl> Date: 22 Mar 89 18:10:23 GMT References: <7150@siemens.UUCP> <9900010@bradley> <4896@cbnews.ATT.COM> <978@philmds.UUCP> <3114@nunki.usc.edu> <983@philmds.UUCP> <852@lynx.zyx.SE> <987@philmds.UUCP> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 9 leo@philmds.UUCP (Leo de Wit) writes: \Appearances are deceptive, it won't handle trigraphs. For instance, try: \??' (trigraph for ^) and your code thinks it is in_char. My sed script can easily be fixed to handle that case too: just add another state to the FSM :-) -- Modeless editors and strong typing: |Maarten Litmaath @ VU Amsterdam: both for people with weak memories. |maart@cs.vu.nl, mcvax!botter!maart