2 * OpenBOR - http://www.LavaLit.com
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in OpenBOR root for details.
6 * Copyright (c) 2004 - 2011 OpenBOR Team
13 stringptr
*new_string(size_t size
) {
14 stringptr
*result
= malloc(sizeof(stringptr
) + size
+ 1);
17 result
->ptr
= (char *) result
+ sizeof(stringptr
);
19 *((char *) (result
->ptr
+ size
)) = '\0';
23 void free_string(stringptr
* string
) {