intex3c.c File Reference

#include <string.h>
#include <stdio.h>
#include "stack-c.h"

Include dependency graph for intex3c.c:

Go to the source code of this file.

Functions

static void not __PARAMS ((int *iv1, int *iv2, intsize))
int intex3c (char *fname)
static void not (int *iv1, int *iv2, int size)


Function Documentation

static void not __PARAMS ( (int *iv1, int *iv2, intsize)   )  [static]

int intex3c ( char *  fname  ) 

Definition at line 18 of file intex3c.c.

References CheckLhs, CheckRhs, CreateVar, GetRhsVar, istk, LhsVar, m1, n1, and not().

00019 {
00020   static int l1,m1, n1,l2;
00021   static int minlhs=1, minrhs=1, maxlhs=1, maxrhs=1;
00022 
00023   CheckRhs(minrhs,maxrhs) ;
00024   CheckLhs(minlhs,maxlhs) ;
00025 
00026   /* a boolean matrix argument */ 
00027   
00028   GetRhsVar(1, "b", &m1, &n1, &l1);
00029 
00030   /* create a new boolean matrix same size as first argument 
00031    *
00032    * note that this is only for illustration since we could directly work 
00033    * with istk(l1) which can be modified and returned. 
00034    */
00035 
00036   CreateVar(2, "b",&m1,&n1,&l2);
00037 
00038   /* fills new matrix  */
00039   
00040   not(istk(l2),istk(l1),m1*n1);
00041 
00042   LhsVar(1) = 2; /* returns new matrix */
00043   return 0;
00044 }

Here is the call graph for this function:

static void not ( int iv1,
int iv2,
int  size 
) [static]

Definition at line 47 of file intex3c.c.

References i.

Referenced by intex3c().

00050 {
00051   int i;
00052   for ( i=0 ; i < size ; i++) iv1[i] = ! iv2[i];
00053 }

Here is the caller graph for this function:


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