Browse Source

add pread test

master
Felix von Leitner 4 years ago
parent
commit
5d08980293
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      trypread.c

+ 7
- 0
trypread.c View File

@@ -0,0 +1,7 @@
#include <unistd.h>

int main() {
char buf[100];
if (pread(0,buf,sizeof(buf),0)==-1) return 111;
return 0;
}

Loading…
Cancel
Save