Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!ucbvax!hplabs!hp-pcd!hpcvia!brianh From: brianh@hpcvia.CV.HP.COM (brian_helterline) Newsgroups: comp.lang.c Subject: Re: A new one on me... Message-ID: <18060004@hpcvia.CV.HP.COM> Date: 30 Nov 89 16:07:19 GMT References: <1989Nov28.221224.6106@world.std.com> Organization: Hewlett-Packard Co., Corvallis, Oregon Lines: 29 bzs@world.std.com (Barry Shein) writes: >In a pd program I ran into a line like this: > > if(c == '') > ... >Sun 4.0.3 cc gives me a non-fatal error (empty character constant.) >Is there any meaning assigned to this? I assume it meant something in >Turbo/C (under which the program was developed.) >It surprised me enough that I thought the language lawyers would be at >least amused. Darn, we could have used that for our favorite feature! >-- > -Barry Shein >Software Tool & Die, Purveyors to the Trade | bzs@world.std.com >1330 Beacon St, Brookline, MA 02146, (617) 739-0202 | {xylogics,uunet}world!bzs >---------- I believe the code was comparing c to the null character '\0' although I have never seen an C that looked like that. ------------------------------------------------------------------------------- Brian Helterline brianh@hpcvia.cv.HP.COM Hewlett Packard ..!hp-pcd!hpcvia!brianh Corvallis, OR 97330 "Life's a beach, then you fry!"