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