-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrss.h
44 lines (38 loc) · 957 Bytes
/
rss.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* TODO: provide documentation for your structure
*/
typedef struct {
// TODO: define your structure here
} Rss;
/**
* A factory function to create an empty RSS feed
* with "default" values
*/
Rss* createEmptyRss();
/**
* A factory function to create an Rss structure
* with the given values
*/
Rss* createRss(const char* title,
const char* link,
const char* date,
const char* description);
/**
* An initialization function to initialize an RSS feed with the
* given values.
*/
void initRss(Rss *feed,
const char* title,
const char* link,
const char* date,
const char* description);
/**
* A function to construct a (human-readable) string representation
* of the given RSS item.
*/
char *rssToString(const Rss *item);
/**
* A function that prints the given Rss structure
* to the standard output.
*/
void printRss(const Rss* item);