🌈 style:

This commit is contained in:
lzy
2024-05-26 15:39:14 +08:00
parent 6f28a3384a
commit a57bbdb4c1
156 changed files with 765 additions and 770 deletions

View File

@@ -12,10 +12,10 @@ struct node_st
};
struct node_st *tree = NULL;
struct node_st* tree = NULL;
static void draw_(struct node_st *root, int level)
static void draw_(struct node_st* root, int level)
{
if (NULL == root)
return;
@@ -37,17 +37,17 @@ static void draw_(struct node_st *root, int level)
*D
* @param root
*/
static void draw(struct node_st *root)
static void draw(struct node_st* root)
{
draw_(root, 0);
printf("\n\n");
}
static struct node_st *load_(FILE *fp)
static struct node_st* load_(FILE* fp)
{
int c;
struct node_st *root;
struct node_st* root;
c = fgetc(fp);
/* if error */
@@ -78,10 +78,10 @@ static struct node_st *load_(FILE *fp)
static struct node_st *load(const char *path)
static struct node_st* load(const char* path)
{
FILE *fp;
struct node_st *root;
FILE* fp;
struct node_st* root;
fp = fopen(path, "r");
if (NULL == fp)
@@ -94,9 +94,9 @@ static struct node_st *load(const char *path)
return root;
}
int main()
int main( )
{
struct node_st *root;
struct node_st* root;
root = load(FNAME);