|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 686 (0x2ae) Types: TextFile Names: »groupdir.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec1/vn/groupdir.c«
/* ** vn news reader. ** ** groupdir.c - translation between newsgroup name and directory ** ** see copyright disclaimer / history in vn.c source file */ #include <stdio.h> #include "config.h" #include "vn.h" extern PAGE Page; /* g_dir converts newsgroup name to directory string */ g_dir(s,t) char *s,*t; { char *ptr, *index(); sprintf (t,"%s/%s",SPOOLDIR,s); for (ptr=t+strlen(SPOOLDIR)+1; (ptr = index(ptr,'.')) != NULL; *ptr = '/') ; } /* change directory to group */ cd_group () { char dbuf [RECLEN]; g_dir ((Page.h.group)->nd_name,dbuf); if (chdir(dbuf) < 0) { Page.h.artnum = 1; Page.b[0].art_id = 0; strcpy (Page.b[0].art_t, "CANNOT FIND NEWSGROUP"); } }