File: dummyexecutable.c

package info (click to toggle)
dwarfutils 20210528-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,924 kB
  • sloc: ansic: 110,023; sh: 5,663; cpp: 4,809; makefile: 654; python: 639; 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;
}