64,648
社区成员
发帖
与我相关
我的任务
分享
FileOper.cpp:25:30: 错误:从类型‘const char*’到类型‘char*’的转换无效 [-fpermissive]
p = strrchr(FileName, '/')
SYNOPSIS
#include <string.h>
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <string.h>
char *strchrnul(const char *s, int c);
DESCRIPTION
The strchr() function returns a pointer to the first occurrence of the character c in the string s.
void GetFileName(const char *FileName,char *ScrFileName)
{
char *p = NULL;
...
if((p = strrchr(FileName, '/')) == NULL)