File: main.c

package info (click to toggle)
libdebian-installer 0.50etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,900 kB
  • ctags: 702
  • sloc: sh: 8,766; ansic: 4,577; makefile: 211
file content (22 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>

extern int test_hash_run();
extern int test_system_packages_run();

static int (*func_run[])() ={
  test_hash_run,
  test_system_packages_run,
  NULL
};

int
main() {
  int result=0;
  int i=0;

  for(i=0; !result && func_run[i]; i++) {
    result = func_run[i]();
    }

  return result;
}