fs_clib.h

来自「瑞星微公司RK27XX系列芯片的SDK开发包」· C头文件 代码 · 共 50 行

H
50
字号
/*
$Log: fs_clib.h,v $
Revision 1.3  2007/11/02 02:40:56  Fangzhenfu
文件系统更新!fs_comm.h (V15000)!
文件句柄采用 MALLOC !

Revision 1.2  2007/10/08 02:58:14  Lingzhaojun
添加版本自动注释脚本

*/

#ifndef _FS_CLIB_H_
#define _FS_CLIB_H_

#if(FS_FILE_HANDLE_MALLOC)
#define FS_Clib_malloc      MALLOC
#define FS_Clib_free        FREE
#else
#define FS_Clib_malloc(p)
#define FS_Clib_free(p)
#endif
#ifdef _USE_ADS_CLIB_
#include "stdio.h"
#include "string.h"
#define FS_Clib_strchr      strchr
#define FS_Clib_strlen      strlen
#define FS_Clib_strncmp     strncmp
#define FS_Clib_strcmp      strcmp
#define FS_Clib_atoi        atoi
#define FS_Clib_memset      memset
#define FS_Clib_memcpy      memcpy
#define FS_Clib_strncpy     strncpy
#define FS_Clib_strcpy      strcpy
#else
const char* FS_Clib_strchr(const char *s, int c);
size_t      FS_Clib_strlen(const char *s);
int         FS_Clib_strncmp(const char *s1, const char *s2, size_t n);
int         FS_Clib_strcmp(const char *s1, const char *s2);
int         FS_Clib_atoi(const char *s);
void *      FS_Clib_memset(void *s, int c, size_t n);
void *      FS_Clib_memcpy(void *s1, const void *s2, size_t n);
char *      FS_Clib_strncpy(char *s1, const char *s2, size_t n);
char *      FS_Clib_strcpy(char *s1, const char *s2);

#endif
char        FS_Clib_toupper(char s);
char *      FS_Clib_strupr(char *s);

#endif

⌨️ 快捷键说明

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