Builder/Builder/Common/plyfile.c
/******************************************************************************
Allocate some memory.

Entry:
  size  - amount of memory requested (in bytes)
  lnum  - line number from which memory was requested
  fname - file name from which memory was requested
******************************************************************************/
Allocate some memory.
Entry:
size  - amount of memory requested (in bytes)
lnum  - line number from which memory was requested
fname - file name from which memory was requested
Allocate some memory . Entry : size - amount of memory requested ( in bytes ) lnum - line number from which memory was requested fname - file name from which memory was requested
char *my_alloc(int size, int lnum, char *fname)
{
  char *ptr;
  ptr = (char *) malloc (size);
  if (ptr == 0) {
    fprintf(stderr, "Memory allocation bombed on line %d in %s\n", lnum, fname);
  }
  return (ptr);
}
char * my_alloc ( int size , int lnum , char * fname ) { char * ptr ; ptr = ( char * ) malloc ( size ) ; if ( ptr == 0 ) { fprintf ( stderr , " \n " , lnum , fname ) ; } return ( ptr ) ; }
Allocate some memory.
Allocate some memory .