//string utilities
//supports memory allocation
//this library works with \0 terminated strings
+#include <stdlib.h>
#include "stdio.h"
+#include <string.h>
#include "abstring.h"
#define MAXSTRINGLENGTH 1000
int ABLength(char* s)
}
char* ABSet(char* s)
{
- char* a;
- a=(char*)realloc(a, ABLength(s)+1);
- strcpy(a,s);
}
char* ABJoin(char* s1,char* s2)
{
//supports memory allocation
//this library works with \0 terminated strings
-#include "viewport.h"
int ABLength(char* s);
char* ABSet(char* s);
char* ABJoin(char* s1,char* s2);