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

Function convert_char_win

src/dir.c:632–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631#elif defined(__CYGWIN__) || defined(__MINGW32__)
632static inline unsigned char convert_char_win(unsigned char car)
633{
634 if(car<0x20)
635 return '_';
636 switch(car)
637 {
638 /* Forbidden */
639 case '<':
640 case '>':
641 case ':':
642 case '"':
643 /* case '/': subdirectory */
644 case '\\':
645 case '|':
646 case '?':
647 case '*':
648 /* Not recommanded, valid for NTFS, invalid for FAT */
649 case '[':
650 case ']':
651 case '+':
652 /* Not recommanded */
653 case ';':
654 case ',':
655 case '=':
656 return '_';
657 }
658 return car;
659}
660
661static unsigned int filename_convert(char *dst, const char*src, const unsigned int n)
662{

Callers 1

filename_convertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected