File: my_fds.c

package info (click to toggle)
erlang 1%3A27.3.4.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 225,108 kB
  • sloc: erlang: 1,660,582; ansic: 405,779; cpp: 177,850; xml: 82,435; makefile: 15,032; sh: 14,407; lisp: 9,812; java: 8,603; asm: 6,541; perl: 5,836; python: 5,484; sed: 72
file content (18 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

#ifdef HAVE_UNISTD_H
#   include <unistd.h>
#endif

int
main(int argc, char** argv)
{
#if defined (__WIN32__)
    printf("Windows");
#else
    char buff[1];
    int res = read(STDIN_FILENO, buff, 1);
    printf("%d", res);
#endif
    return 0;
}