including stdlib.h to declare malloc (FedoraCore3, gcc 3.4.2)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Dec 2004 15:44:15 +0000 (15:44 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 18 Dec 2004 15:44:15 +0000 (15:44 +0000)
MICROCERN/fchtak.c

index 67c4d16..cf8221e 100644 (file)
@@ -10,6 +10,7 @@
       return the memory pointer
 */
 #include <stdio.h>
+#include <stdlib.h>
 #include "kerngen/fortchar.h"
 char *fchtak(ftext,lgtext)
 #if defined(CERNLIB_QMCRY)
@@ -20,14 +21,14 @@ char *fchtak(ftext,lgtext)
 #endif
       int  lgtext;
 {
-      char *malloc();
+  /*      char *malloc(); */
       char *ptalc, *ptuse;
       char *utext;
       int  nalc;
       int  ntx, jcol;
 
       nalc  = lgtext + 8;
-      ptalc = malloc (nalc);
+      ptalc = (char*)malloc (nalc);
       if (ptalc == NULL)     goto exit;
 #if defined(CERNLIB_QMCRY)
       utext = _fcdtocp(ftext);