🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.programming
1 messages
1 total messages Started by pul... Krzysztof Pulapa Thu, 22 Feb 1996 00:00
directory or file II
#366
Author: pul... Krzysztof Pulapa
Date: Thu, 22 Feb 1996 00:00
15 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads