home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
graphics
/
randjpeg_1
/
source
/
h
/
strings
< prev
Wrap
Text File
|
1995-12-27
|
1KB
|
64 lines
#ifndef strings_h
#define strings_h
#include <limits.h>
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
typedef struct node node;
struct node {
node *next;
char text[65536];
};
typedef struct strings strings;
struct strings {
node *head;
node *tail;
unsigned int count;
};
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
extern void strings_add(
strings *s,
const char *text);
extern void strings_clear(
strings *s);
extern node *strings_find(
const strings *s,
const char *text);
extern node *strings_get(
const strings *s,
unsigned int index);
extern void strings_insert(
strings *s,
node *node);
extern void strings_read(
strings *s,
const char *filename);
extern void strings_remove(
strings *s,
node *node);
extern void strings_write(
const strings *s,
const char *filename);
#endif /* strings_h */