File: dummyexecutable.c

package info (click to toggle)
dwarfutils 20201201-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,868 kB
  • sloc: ansic: 104,667; sh: 5,947; cpp: 4,675; python: 878; makefile: 646; awk: 11
file content (21 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*  This is a dummy to create a tiny executable
    we will use in make check on debuglink
    Compiled by
        cc -g dummyexecutable.c -o dummyexecutable
    On Ubuntu 18.04 10 November 2019
*/
#include <stdio.h>

int myfunc(unsigned x)
{
    int z = x +3;
    return z;
}

int main(int argc, char **argv)
{
    int zed = 0;

    zed = myfunc(zed +2);
    return zed;
}