Xref: utzoo comp.lang.c:25693 comp.unix.wizards:20470 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!snorkelwacker!bloom-beacon!eru!luth!sunic!spocm2!spodv4!lca From: lca@spodv4.UUCP (Lars H Carlsson) Newsgroups: comp.lang.c,comp.unix.wizards Subject: Re: Argument validity checking (addresses) Summary: Just a remark :-) Message-ID: <180@spodv4.UUCP> Date: 5 Feb 90 08:52:49 GMT References: <1990Jan18.175540.12131@wolves.uucp> <1891@gmdzi.UUCP> <1990Feb2.070437.2695@stb.uucp> Organization: Philips TDS, Stockholm, Sweden Lines: 24 In article <1990Feb2.070437.2695@stb.uucp>, michael@stb.uucp (Michael Gersten) writes: > . Guys, to find out if an address is valid or not, pass it to > access as a filename. It has to check for that being valid and in your > address, and you can see if it gives you EACCESS or not. > > So there is a use for access() after all. > > Michael > -- > Michael > denwa!stb!michael anes.ucla.edu!stb!michael > "The 80's: Ten years that came in a row." X/Open page ACCESS(2).1 " ... [EACCES] Permission bits of the file mode do not permit the requested access. ... " (there are access and access ;-) LH