home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume36
/
formes
/
part01
/
quizset.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-01
|
1KB
|
56 lines
/*
* Copyright (C) 1992-1993 Jeffrey Chilton
*
* Permission is granted to anyone to make or distribute copies of
* this program, in any medium, provided that the copyright notice
* and permission notice are preserved, and that the distributor
* grants the recipient permission for further redistribution as
* permitted by this notice.
*
* Author's E-mail address: 172-9221@mcimail.com
*
*/
/* static char *whatstring = "@(#)quizset.h 2.2 JWC"; */
#ifndef QUIZSET_H
#define QUIZSET_H
/*
* QuizSet - A collection of Quizs
*/
typedef struct QuizSet QuizSet;
#include "collect.h"
#include "quiz.h"
struct QuizSet
{
Collection *allQuizs;
};
#if __STDC__
extern QuizSet *QuizSet_new();
extern void QuizSet_addOne(QuizSet *self, Quiz *quiz);
extern Quiz *QuizSet_getOneAtRandom(QuizSet *self);
extern Quiz *QuizSet_getOneFromClass(QuizSet *self, int class);
extern void QuizSet_destroy(QuizSet *self);
#else
extern QuizSet *QuizSet_new();
extern void QuizSet_addOne();
extern Quiz *QuizSet_getOneAtRandom();
extern Quiz *QuizSet_getOneFromClass();
extern void QuizSet_destroy();
#endif
#define QuizSet_getAll(s) ((s)->allQuizs)
#endif