- 论坛徽章:
- 0
|
As you see, the following line
//ex-compile.c #include <glib.h> int main(int argc, char** argv) { GList* list = NULL; list = g_list_append(list, "Hello world!"); printf("The first item is '%s'\n", g_list_first(list)->data); return 0; }
exists in a text file. I open it in vi and setup 'set list' to see, above line from the beginning of the line //ex-compile.c up to return 0; } seems in ONE line
in the text file.
I wonder How can I reformat the file into normal form as below
//ex-compile.c
#include<glib.h>
int main(int argc, char** argv) {
GList* list=NULL;
...
...
return 0;
}
Thanks in advance. |
|