ex15c.c File Reference

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

Include dependency graph for ex15c.c:

Go to the source code of this file.

Functions

int F2C() ext15ca (double *ar, int *m, int *n)
int F2C() ext15cb (double *ar1, double *ar2, int *m, int *n)
int F2C() ext15cc (int *ar, int *m, int *n)
int F2C() ext15cd (int *ar1, int *ar2, int *m, int *n)
int F2C() ext15ce (int **ar1, int *m, int *n, int *err)


Function Documentation

int F2C() ext15ca ( double *  ar,
int m,
int n 
)

Definition at line 9 of file ex15c.c.

00012 { 
00013 
00014 }

int F2C() ext15cb ( double *  ar1,
double*  ar2,
int m,
int n 
)

Definition at line 21 of file ex15c.c.

References i, and m.

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

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

Definition at line 34 of file ex15c.c.

00036 { 
00037 
00038 }

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

Definition at line 47 of file ex15c.c.

References i, and m.

00051 {
00052   int i;
00053   for ( i = 0; i < *m*(*n) ; i++) 
00054     ar2[i] = 2*ar1[i];
00055 }

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

Definition at line 65 of file ex15c.c.

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

00068 {
00069   int i;
00070   *n=1;
00071   *m=10;
00072   *ar1 = (int *) malloc((unsigned) (*m)*sizeof(int));
00073   if ( *ar1 == (int*) 0) 
00074     {
00075       *err=1;
00076       sciprint("No more space\r\n");
00077       return;
00078     }
00079   *err=0;
00080   for ( i = 0; i < *m*(*n) ; i++) 
00081     (*ar1)[i] = i;
00082 }

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