~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to routines/scicos/modulo_count.c

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "scicos_block.h"
 
2
#include <math.h>
 
3
 
 
4
void 
 
5
modulo_count(scicos_block *block,int flag)
 
6
{
 
7
  if(flag == 1) {
 
8
    *block->outptr[0]=block->z[0];
 
9
  }else if (flag == 2){
 
10
    block->z[0]=(1+(int)block->z[0])%(block->ipar[0]);
 
11
   }
 
12
}
 
13