swab函数 (#53)

* swab函数

Signed-off-by: Yuqia <15287042733@163.com>

* 修正格式

Signed-off-by: Yuqia <15287042733@163.com>
Co-authored-by: fslongjin <longjin@RinGoTek.cn>
This commit is contained in:
DaJiYuQia
2022-10-07 15:45:49 +08:00
committed by GitHub
parent 9300757779
commit e62bbf13e5
5 changed files with 95 additions and 9 deletions

View File

@ -25,4 +25,12 @@ pid_t fork(void);
*
* @return pid_t
*/
pid_t vfork(void);
pid_t vfork(void);
/**
* @brief 交换n字节
* @param src 源地址
* @param dest 目的地址
* @param nbytes 交换字节数
*/
void swab(void *restrict src, void *restrict dest, ssize_t nbytes);