File: hello.c

package info (click to toggle)
hardening-wrapper 2.6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 196 kB
  • ctags: 81
  • sloc: perl: 495; makefile: 284; sh: 257; ansic: 85
file content (20 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>

int announcement(char *prog)
{
    char buf[1024];

    snprintf(buf,sizeof(buf),"%s",prog);
    return printf("%s: ok (%p)\n",buf,announcement);
}

int main(int argc, char * argv[])
{
    return !(announcement(argv[0]) > 0);
}