int main() {
int fd; // File Descriptor for the integer file
int pagesize=getpagesize(); // To store the size of virtual page
printf("\nPage size is %d bytes.\n100 integers require %l
當我運行下面的節目,我有這個問題。一切都編譯得很好,但是當我運行它並輸入內容時,我收到了分段錯誤消息。它不是一個完整的代碼,只是它的一部分,它應該將一些字符串(地址)從輸入文件寫入字符串數組,然後在數組中搜索可能的搜索字符串(作爲參數輸入)。 #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int ar