Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!sumax!polari!6sceng!blm From: blm@6sceng.UUCP (Brian Matthews) Newsgroups: comp.unix.wizards Subject: Re: of course! Message-ID: <341@6sceng.UUCP> Date: 10 Dec 89 05:41:08 GMT References: <152@norsat.UUCP> <2586@unisoft.UUCP> <15769@bloom-beacon.MIT.EDU> <17264@rpp386.cactus.org> <4526@ski.cs.vu.nl> <17303@rpp386.cactus.org> <1051@root44.co.uk> <1989Nov22.224209.28911@athena.mit.edu> <128791@sun.Eng.Sun.COM> <563@balthmus.tessi.UUCP> <1473 Reply-To: blm@6sceng.UUCP (Brian Matthews) Organization: Six Sigma CASE, Inc. Lines: 17 In article <14738@boulder.Colorado.EDU> bri@boulder.Colorado.EDU (Brian Ellis) writes: |In article <563@balthmus.tessi.UUCP> joey@tessi.UUCP (Joe Pruett) writes: |>isadir(path) |>char *path; |>{ |> char tpath[strlen(path) + 3]; |[deleted] | this declaration is not legal, though. You must give the size at | *compile* time. You'll get the error "constant expected" Go back and read <563@balthmus.tessi.UUCP> again. The declaration is one of gcc's extensions to C (all of which can be turned off, of course). It's equivalent to char *tpath = alloca (strlen (path) + 3); -- Brian L. Matthews blm@6sceng.UUCP