File: my_fds.c

package info (click to toggle)
erlang 1%3A28.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 235,640 kB
  • sloc: erlang: 1,685,753; ansic: 436,891; cpp: 178,143; xml: 82,195; makefile: 15,086; sh: 14,588; lisp: 9,856; java: 8,603; asm: 6,829; perl: 5,874; python: 5,482; sed: 72
file content (18 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
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;
}