Skip to content

Commit

Permalink
astyle codes
Browse files Browse the repository at this point in the history
  • Loading branch information
misonyo committed Nov 26, 2018
1 parent 4c990a4 commit 4fa8cce
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 45 deletions.
14 changes: 7 additions & 7 deletions mkdir_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:创建目录
Expand Down
14 changes: 7 additions & 7 deletions opendir_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:打开目录
Expand Down
14 changes: 7 additions & 7 deletions readdir_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:读取目录
Expand Down
14 changes: 7 additions & 7 deletions rename_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:更改名称
Expand Down
18 changes: 9 additions & 9 deletions stat_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:取得状态
Expand All @@ -23,8 +23,8 @@ static void stat_sample(void)
{
int ret;
struct stat buf;
ret=stat("/text.txt", &buf);
if(ret==0)
ret = stat("/text.txt", &buf);
if (ret == 0)
rt_kprintf("text.txt file size = %d\n", buf.st_size);
else
rt_kprintf("text.txt file not fonud\n");
Expand Down
16 changes: 8 additions & 8 deletions tell_seek_dir_sample.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*
*
*/
/*
* 程序清单:保存与设置读取目录位置
Expand All @@ -30,7 +30,7 @@ static void telldir_sample(void)
/* 打开根目录 */
rt_kprintf("the directory is:\n");
dirp = opendir("/");

for (dp = readdir(dirp); dp != RT_NULL; dp = readdir(dirp))
{
/* 保存第三个目录项的目录指针*/
Expand Down

0 comments on commit 4fa8cce

Please sign in to comment.