MCPcopy Create free account
hub / github.com/ddnet/ddnet / fs_parent_dir

Function fs_parent_dir

src/base/fs.cpp:489–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489int fs_parent_dir(char *path)
490{
491 char *parent = nullptr;
492 for(; *path; ++path)
493 {
494 if(*path == '/' || *path == '\\')
495 parent = path;
496 }
497
498 if(parent)
499 {
500 *parent = 0;
501 return 0;
502 }
503 return 1;
504}
505
506void fs_normalize_path(char *path)
507{

Callers 7

PopupMapPickerMethod · 0.85
RunServerMethod · 0.85
OnRenderMethod · 0.85
ConAddMapVotesMethod · 0.85
FindBinaryDirectoryMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68