1 #define _CRT_SECURE_NO_WARNINGS 2 #include<stdio.h> 3 #include<stdlib.h> 4 #include <string.h> 5 #include <memory.h> 6 #include <process.h> 7 #include <Windows.h> 8 9 char *path = "dangdangwang.txt"; 10 11 #define N 13180820 12 13 //存储所有的行的信息 14 char ** g_pp; 15 //创建线程的数组 16 struct threads *pthread; 17 18 //初始化全局变量g_pp 19 void init(char *path) 20 { 21 printf("init start"); 22 g_pp = malloc(sizeof(char*)*N); 23 memset(g_pp, '