File: add1-test.c

package info (click to toggle)
python-cffi 2.0.0~b1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,796 kB
  • sloc: python: 28,456; ansic: 15,272; asm: 116; makefile: 97; sh: 14
file content (21 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

#ifdef _MSC_VER
#include <windows.h>
#endif

extern int add1(int, int);


int main(void)
{
    int x, y;
    x = add1(40, 2);
    y = add1(100, -5);
    printf("got: %d %d\n", x, y);
#ifdef _MSC_VER
    if (x == 0 && y == 0)
        Sleep(2000);
#endif
    return 0;
}