19 lines
448 B
C
19 lines
448 B
C
#ifndef _STRING_H_
|
|
#define _STRING_H_
|
|
|
|
#include "string.h"
|
|
#include <akerror.h>
|
|
#include <limits.h>
|
|
|
|
#define AKGL_MAX_STRING_LENGTH PATH_MAX
|
|
|
|
typedef struct
|
|
{
|
|
int refcount;
|
|
char data[AKGL_MAX_STRING_LENGTH];
|
|
} akgl_String;
|
|
|
|
akerr_ErrorContext AKERR_NOIGNORE *akgl_string_initialize(akgl_String *obj, char *init);
|
|
akerr_ErrorContext AKERR_NOIGNORE *akgl_string_copy(akgl_String *src, akgl_String *dst, int count);
|
|
#endif //_STRING_H_
|