File: hello.c

package info (click to toggle)
hardening-wrapper 1.29
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 128 kB
  • ctags: 35
  • sloc: sh: 243; makefile: 236; perl: 201; ansic: 17
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);
}