MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / gen_local_filename

Function gen_local_filename

src/dir.c:731–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729#endif
730
731char *gen_local_filename(const char *filename)
732{
733 const int l=strlen(filename);
734 char *dst=(char *)MALLOC(l+1);
735 filename_convert(dst, filename, l);
736#if defined(DJGPP) || defined(__CYGWIN__) || defined(__MINGW32__)
737 if(filename[0]!='\0' && filename[1]==':')
738 dst[1]=':';
739#endif
740 return dst;
741}
742
743char *mkdir_local(const char *localroot, const char *pathname)
744{

Callers 1

create_pathnameFunction · 0.85

Calls 2

MALLOCFunction · 0.85
filename_convertFunction · 0.85

Tested by

no test coverage detected