]> granicus.if.org Git - graphviz/commitdiff
*** empty log message ***
authorarif <devnull@localhost>
Tue, 26 Feb 2008 16:43:51 +0000 (16:43 +0000)
committerarif <devnull@localhost>
Tue, 26 Feb 2008 16:43:51 +0000 (16:43 +0000)
lib/utilities/abstring.c
lib/utilities/abstring.h

index 657568a8c9c283eaf75116652917dbfc864f5632..8013bf6d92c484ca829467030824ec064e330487 100755 (executable)
@@ -17,7 +17,9 @@
 //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)
@@ -33,9 +35,6 @@ 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)
 {
index 02e72a6ec1895a179b6a6ac1e6cdd6be5f537318..f755e839915713447cab0661960720ab50da1c95 100755 (executable)
@@ -18,7 +18,6 @@
 //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);