--- hatari/src/includes/str.h 2019/04/09 08:47:16 1.1.1.2 +++ hatari/src/includes/str.h 2019/04/09 08:54:29 1.1.1.6 @@ -1,8 +1,8 @@ /* Hatari - str.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_STR_H @@ -14,12 +14,21 @@ # include #endif +/* Invalid characters in paths & filenames are replaced by this, + * a valid, but uncommon GEMDOS file name character, + * which hopefully shouldn't cause problems in: + * - TOS *.INF files used for autostarting + * - GEM file selectors (TOS or replacement ones) + * - path/file handling code of common programming languages + */ +#define INVALID_CHAR '+' + extern char *Str_Trim(char *buffer); extern char *Str_ToUpper(char *pString); extern char *Str_ToLower(char *pString); extern char *Str_Trunc(char *str); extern bool Str_IsHex(const char *str); -extern bool Str_GetNumber(const char *value, Uint32 *number); -extern int Str_ParseRange(char *str, Uint32 *lower, Uint32 *upper); +extern void Str_Filename2TOSname(const char *src, char *dst); +extern void Str_Dump_Hex_Ascii ( char *p , int Len , int Width , const char *Suffix , FILE *pFile ); #endif /* HATARI_STR_H */