DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T s

⟦cf907658a⟧ TextFile

    Length: 899 (0x383)
    Types: TextFile
    Names: »sections.c«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/rman/daemon/sections.c« 

TextFile

#ifndef lint
static char RCSid[] = "$Header: sections.c,v 1.1 85/08/04 16:37:18 broome Exp $";
#endif

/*
 * $Log:    sections.c,v $
 * Revision 1.1  85/08/04  16:37:18  broome
 * Initial revision
 * 
 */

#include "defs.h"

/*
 *  Show the list of all valid sections that the user can ask for.
 *  This can be used by a client program to download a list of *current*
 *  sections, instead of compiling them in. For this reason, we count
 *  the number of sections first, so that the client can allocate enough
 *  memory to save all the sections...
 */

dosections ()
{
    SEC  *sec;
    int  num = 0;

    for (sec = sections; sec; sec = sec->next)    /* count number of sections */
        num++;

    printf ("121-%d sections follow:\r\n", num);
    for (sec = sections; sec; sec = sec->next)
        printf ("120-%s\r\n", sec->name);
    printf ("122 That's all.\r\n");
    fflush (stdout);
}