ex16c.c File Reference

#include "../../routines/machine.h"

Include dependency graph for ex16c.c:

Go to the source code of this file.

Functions

int F2C() ext16ca (int *ar, int *m, int *n)
int F2C() ext16cb (int *ar1, int *ar2, int *m, int *n)
int F2C() ext16ce (int **ar1, int *m, int *n, int *err)


Function Documentation

int F2C() ext16ca ( int ar,
int m,
int n 
)

Definition at line 9 of file ex16c.c.

References ar, and i.

00012 { 
00013   int i;
00014   for ( i=0; i < (*m)*(*n) ; i++) ar[i]= (ar[i]==1)? 0:1;
00015 }

int F2C() ext16cb ( int ar1,
int ar2,
int m,
int n 
)

Definition at line 22 of file ex16c.c.

References i, and m.

00025 {
00026   int i;
00027   for ( i = 0; i < *m*(*n) ; i++) ar2[i] =  (ar1[i]==1)? 0:1;
00028 }

int F2C() ext16ce ( int **  ar1,
int m,
int n,
int err 
)

Definition at line 36 of file ex16c.c.

References err, i, j, m, malloc(), n, and sciprint().

00039 {
00040   int i,j;
00041   *n=2;
00042   *m=3;
00043   *ar1 = (int *) malloc((unsigned) (*m)*(*n)*sizeof(int));
00044   if ( *ar1 == (int*) 0) 
00045     {
00046       *err=1;
00047       sciprint("No more space\r\n");
00048       return;
00049     }
00050   *err=0;
00051   for ( i = 0; i < (*n) ; i++) 
00052     for ( j = 0; j < (*m) ; j++) 
00053       (*ar1)[i+(*n)*j] = i ;
00054 }

Here is the call graph for this function:


Generated on Sun Mar 4 16:08:12 2007 for Scilab [trunk] by  doxygen 1.5.1