lseek

    0

    1답변

    저는이 포럼을 처음 접 했으므로 전문가에게 질문하고 싶습니다. 나는 다음과 같은 프로그램 작성 (더 큰 일의 일부를, 그러나 이것은 나에게 문제의 원인이되는 코드) 20~30초 후, #include <unistd.h> #include <fcntl.h> int main() { int fd; fd = open("/dev/watchdog

    0

    2답변

    다음 프로그램을 실행합니다. 나는 그것이 오류를 줄 것이라고 기대했다. 그러나 그것은 완벽하게 작동하고 출력을 주었다. 프로그램 : #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <stdlib.h> int main() { int

    0

    1답변

    이 작은 예제를 컴파일하려고 ... #include <iostream> #include <stdio.h> #include <unistd.h> int main(void) { FILE *foo; foo = fopen("bar.txt", "rt"); lseek(foo, 5, SEEK_CUR); // This line is g