Mercurial > repos > blastem
diff util.h @ 2158:bdd83b47d78a
Implement config file migrations and add iso and cue to extension list
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 24 May 2022 09:10:54 -0700 |
parents | 237068a25523 |
children | 794ba17f0716 |
line wrap: on
line diff
--- a/util.h Thu Apr 28 18:44:50 2022 -0700 +++ b/util.h Tue May 24 09:10:54 2022 -0700 @@ -22,6 +22,8 @@ char * alloc_concat(char const * first, char const * second); //Allocates a new string containing the concatenation of the strings pointed to by parts char * alloc_concat_m(int num_parts, char const ** parts); +//Allocates a new string containing the concatenation of the strings pointed to by parts separated by sep +char * alloc_join(int num_parts, char const **parts, char sep); //Returns a newly allocated string in which all variables in based are replaced with values from vars or the environment char *replace_vars(char *base, tern_node *vars, uint8_t allow_env); //Byteswaps a ROM image in memory