First upload of the code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
17
linux.c
Normal file
17
linux.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <string.h>
|
||||
|
||||
void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
|
||||
{
|
||||
int i=0, Position_Du_Dernier_Slash;
|
||||
do
|
||||
{
|
||||
Chemin[i]=Buffer[i];
|
||||
if (Buffer[i]=='/')
|
||||
Position_Du_Dernier_Slash=i;
|
||||
i++;
|
||||
}while (Buffer[i]!=0);
|
||||
|
||||
i=Position_Du_Dernier_Slash+1;
|
||||
Chemin[i]=0;
|
||||
strcpy(Nom_Fichier,Buffer+i);
|
||||
}
|
||||
Reference in New Issue
Block a user