blob: 9d4fbd6a17294e28157b4280a5f53c073da2feec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "str.h"
/* This is meant to be extended, and only has minimal necessary
fields. */
typedef str_info (*info_getter) (str *, UNUM);
struct str_s {
UNUM size; /* the size in bytes, not in chars */
char *data; /* a void pointer is too general */
/* polymorphic behaviour */
info_getter getter;
};
|