_:neafbc1a1c8774922b216c184bccd604axb15
<http://schema.org/text>
"Si ton api n'en fourni pas une (mais ca c'est &#224; verifier) implemente toi meme une fonction 'basename' ou 'pathname' ...\r\n\r\n\r\n\r\n#include &lt;string.h&gt;\r\n\r\n\r\n\r\nchar * basename( const char *file, char *base )\r\n\r\n{\r\n\r\n     char * const p = strrchr(file, '\\\\');\r\n\r\n     size_t pos;\r\n\r\n     \r\n\r\n     if( ! p )\r\n\r\n         return NULL;\r\n\r\n     \r\n\r\n     pos = (size_t)(p - file) + 1;\r\n\r\n     memcpy(base, file, pos);\r\n\r\n     base[pos] = '\\0';\r\n\r\n     \r\n\r\n     return base;\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\nconst char * const file = &quot;C:\\\\Documents and Settings\\\\quick\\\\Bureau\\\\Nouveau dossier\\\\test me.exe&quot;;\r\n\r\nchar s[200];\r\n\r\n\r\n\r\nputs( basename(file, s) );"
<https://codes-sources.commentcamarche.net/forum/affich-530944-urgent-probleme-avec-split-d-un-string>