This commit is contained in:
parent
110a170af4
commit
05cce3405e
1 changed files with 16 additions and 0 deletions
16
src/process.c
Normal file
16
src/process.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <taiga.h>
|
||||
|
||||
void process(const char* out, const char* full){
|
||||
char* f = strrchr(full, '/');
|
||||
|
||||
if(f != NULL) f = f + 1;
|
||||
|
||||
if(f != NULL){
|
||||
char* n;
|
||||
|
||||
f = u_strdup(f);
|
||||
if((n = strrchr(f, '.')) != NULL) n[0] = 0;
|
||||
|
||||
free(f);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue