add pread test

This commit is contained in:
Felix von Leitner 2016-06-23 19:43:00 +00:00
parent 8853a842f1
commit 5d08980293
1 changed files with 7 additions and 0 deletions

7
trypread.c Normal file
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;
}