#include "../pblas.h"
#include "../PBpblas.h"
#include "../PBtools.h"
#include "../PBblacs.h"
#include "../PBblas.h"
Go to the source code of this file.
◆ PB_Cmalloc()
| char * PB_Cmalloc |
( |
Int | LENGTH | ) |
|
Definition at line 22 of file PB_Cmalloc.c.
28{
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 char * bufptr = NULL;
53
54
55
56
57 if( LENGTH > 0 )
58 {
59 if( !( bufptr = (char *) malloc( (unsigned)LENGTH ) ) )
60 {
61 (void) fprintf( stderr, "Not enough memory on line %d of file %s!!\n",
62 __LINE__, __FILE__ );
64 }
65 }
66 return( bufptr );
67
68
69
70}