//在c语言环境下实现 C++中的getline函数 即在c语言中按行读取
FILE * fp;
char * send_msg = NULL;
size_t len = 0;
ssized_t read;
while ((read = getline(&send_msg, &len, fp)) != -1)
{
printf("%s\n",send_msg);
count++;
send_msg = NULL;
printf("共计 %d \n ",count);
if(read == -1)
breek;
}