Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

F77_aloc.c File Reference

#include "stdio.h"
#include "stdlib.h"
#include "f2c.h"

Go to the source code of this file.


Functions

void exit_ (integer *)
char * F77_aloc (integer Len, char *whence)

Variables

integer memfailure = 3

Function Documentation

void exit_ integer  
 

Definition at line 28 of file exit.c.

References f_exit().

00030 {
00031 #ifdef NO_ONEXIT
00032         f_exit();
00033 #endif
00034         exit(*rc);
00035         }

char* F77_aloc integer    Len,
char *    whence
 

Definition at line 21 of file F77_aloc.c.

References malloc, and memfailure.

00023 {
00024         char *rv;
00025         unsigned int uLen = (unsigned int) Len; /* for K&R C */
00026 
00027         if (!(rv = (char*)malloc(uLen))) {
00028                 fprintf(stderr, "malloc(%u) failure in %s\n",
00029                         uLen, whence);
00030                 exit(memfailure);
00031                 }
00032         return rv;
00033         }

Variable Documentation

integer memfailure = 3 [static]
 

Definition at line 8 of file F77_aloc.c.

Referenced by F77_aloc().

 

Powered by Plone

This site conforms to the following standards: