How to get file extension from string in C++

前端 未结 25 2429
迷失自我
迷失自我 2020-11-30 22:35

Given a string \"filename.conf\", how to I verify the extension part?

I need a cross platform solution.

25条回答
  •  渐次进展
    2020-11-30 23:28

    _splitpath, _wsplitpath, _splitpath_s, _wsplitpath_w
    

    This is Windows (Platform SDK) only

提交回复
热议问题