ex8c.c File Reference

#include "../../routines/machine.h"
#include <stdlib.h>

Include dependency graph for ex8c.c:

Go to the source code of this file.

Functions

C2F() ccalc8 (int **a, int *m, int *n, int *err)


Function Documentation

C2F() ccalc8 ( int **  a,
int m,
int n,
int err 
)

Definition at line 9 of file ex8c.c.

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

00011 {
00012   int i ;
00013   *n=5 ;
00014   *m=3 ;
00015   *a= ( int *) malloc( (unsigned) (*m)*(*n) *sizeof(int));
00016   if ( *a == (int *) 0 ) 
00017     {
00018       *err=1;
00019       sciprint("No more space\r\n");
00020     }
00021   *err=0;
00022   for ( i= 0 ; i < (*m)*(*n) ; i++) (*a)[i] = i ;
00023 }

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