Created
October 15, 2011 01:55
-
-
Save uhziel/1288878 to your computer and use it in GitHub Desktop.
apue.2e.fig3.1.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "apue.h" | |
int main() | |
{ | |
if (lseek(STDIN_FILENO, 0, SEEK_CUR == -1)) | |
{ | |
printf("cannot seek\n"); | |
} | |
else | |
{ | |
printf("can seek\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment