Article View: pl.comp.programming
Article #366directory or file II
From: pul... Krzysztof Pulapa
Date: Thu, 22 Feb 1996 00:00
Date: Thu, 22 Feb 1996 00:00
15 lines
772 bytes
772 bytes
Juz wiem jak to zrobic ;) , a tu jest rozwiazanie dla ciekawskich :
int isdir(k)
char *k;
{
struct stat aa;
int bb;
bb=stat(k,&aa);
if (bb<0) return(0); else return(S_ISDIR(aa.st_mode));
}
--
Pulapa Krzysztof , Politechnika Krakowska
E-mail: pul...@edison.pk.edu.pl , ji...@avalon.wbc.lublin.pl
URL : http://avalon.wbc.lublin.pl/~jimi , on IRC : Jimi
Technical Details
Message-ID:
<Dn63zt.3qH@cyf-kr.edu.pl>Path:
mbox-mo1.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: pul...@edison.pk.edu.pl (Krzysztof Pulapa) Subject: directory or file II Date: 1996/02/22 Message-ID: <Dn63zt.3qH@cyf-kr.edu.pl> X-Deja-AN: 140670394 sender: ne...@cyf-kr.edu.pl (News Administrator) organization: Instytut E-5 newsgroups: pl.comp.programming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit