File: bar.c

package info (click to toggle)
python-numpy 1%3A1.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,732 kB
  • ctags: 19,262
  • sloc: ansic: 146,995; python: 98,088; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (15 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <stdio.h>

void bar(int *a,int m,int n) {
  int i,j;
  printf("C:");
  printf("m=%d, n=%d\n",m,n);
  for (i=0;i<m;++i) {
    printf("Row %d:\n",i+1);
    for (j=0;j<n;++j)
      printf("a(i=%d,j=%d)=%d\n",i,j,a[n*i+j]);
  }
  if (m*n)
    a[0] = 7777;
}