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  

system_.c File Reference

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

Go to the source code of this file.


Functions

char * F77_aloc (ftnlen, char *)
integer system_ (register char *s, ftnlen n)

Function Documentation

char* F77_aloc ftnlen   ,
char *   
 

Referenced by s_cat(), and system_().

integer system_ register char *    s,
ftnlen    n
 

Definition at line 19 of file system_.c.

References F77_aloc(), and free.

00021 {
00022         char buff0[256], *buff;
00023         register char *bp, *blast;
00024         integer rv;
00025 
00026         buff = bp = n < sizeof(buff0)
00027                         ? buff0 : F77_aloc(n+1, "system_");
00028         blast = bp + n;
00029 
00030         while(bp < blast && *s)
00031                 *bp++ = *s++;
00032         *bp = 0;
00033         rv = system(buff);
00034         if (buff != buff0)
00035                 free(buff);
00036         return rv;
00037         }
 

Powered by Plone

This site conforms to the following standards: