Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1606341
  • 博文数量: 245
  • 博客积分: 10378
  • 博客等级: 上将
  • 技术积分: 2571
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-27 08:19
文章分类

全部博文(245)

文章存档

2013年(4)

2012年(8)

2011年(13)

2010年(68)

2009年(152)

分类: WINDOWS

2010-12-28 10:03:48

void splitpathex(const char *path,char *dir,char *filename)
{
    char * lastSlash;
    char    tmpChar;  

   lastSlash = const_cast<char*>(strrchr(path,'\\')); 
    
    tmpChar = *lastSlash;
    *lastSlash = '\0';
    
    if (dir)
        strcpy(dir,path);
    if (filename)
        strcpy(filename,lastSlash+1);
    
    *lastSlash = tmpChar;
}


阅读(1124) | 评论(0) | 转发(0) |
0

上一篇:hp cq40安装xp系统

下一篇:Scalable Video Coding

给主人留下些什么吧!~~