char *str_dup(const char *s)
{
+ char *tmp;
if (s == NULL) return NULL;
- char *tmp = (char *)malloc(sizeof(char)*(strlen(s)+1));
+ tmp = (char *)malloc(sizeof(char)*(strlen(s)+1));
strcpy(tmp, s);
return tmp;
}
/* Imprimo la lista de bloques/registros */
strcpy(name_f_block_free,emu->nombre);
- strcat(name_f_block_free,".id3");
+ strcat(name_f_block_free,".idx");
{
BLOCK_REG_T r;
f_block_free = fopen(name_f_block_free, "r");