string.h

来自「一个类linux的dos下开发的操作系统.」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef __TL_STRING_H
#define	__TL_STRING_H

#ifdef __cplusplus
extern "C"
{
#endif /* #ifdef __cplusplus */

#include <_size_t.h>
#include <_null.h>

int memcmp(const void *memptr1, const void *memptr2, size_t count);
void *memcpy(void *dst_ptr, const void *src_ptr, size_t count);
void *memset(void *dst, int val, size_t count);
void *memmove(void *dst_ptr, const void *src_ptr, size_t count);

void *memsetw(void *dst, int val, size_t count);
void movedata(unsigned src_seg, unsigned src_off,
		unsigned dst_seg, unsigned dst_off, size_t count);

size_t strlen(const char *str);

#ifdef __cplusplus
}
#endif /* #ifdef __cplusplus */

#endif /* #ifndef __TL_STRING_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?