parent
b67b211f56
commit
6a1cdf69a2
@ -1,2 +1,17 @@
|
|||||||
# xiaominote_code_analysis
|
# xiaominote_code_analysis
|
||||||
|
<!-- static void _split_whole_name(const char *whole_name, char *fname, char *ext)
|
||||||
|
{
|
||||||
|
const char *p_ext;
|
||||||
|
|
||||||
|
p_ext = rindex(whole_name, '.');
|
||||||
|
if (NULL != p_ext)
|
||||||
|
{
|
||||||
|
strcpy(ext, p_ext);
|
||||||
|
snprintf(fname, p_ext - whole_name + 1, "%s", whole_name);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ext[0] = '\0';
|
||||||
|
strcpy(fname, whole_name);
|
||||||
|
}
|
||||||
|
} -->
|
||||||
|
Loading…
Reference in new issue