src/misc.c
/*
**	This function converts the .s extension to the .cor extension for the
**	filename.
*/
This function converts the .s extension to the .cor extension for the
filename.
This function converts the . s extension to the . cor extension for the filename .
void		gen_filename(void)
{
	int	len;
	len = ft_strlen(g_filename_in);
	g_filename_out = ft_strnew(len + 2);
	ft_strcpy(g_filename_out, g_filename_in);
	g_filename_out[len - 1] = 'c';
	g_filename_out[len + 0] = 'o';
	g_filename_out[len + 1] = 'r';
}
void gen_filename ( void ) { int len ; len = ft_strlen ( g_filename_in ) ; g_filename_out = ft_strnew ( len + 2 ) ; ft_strcpy ( g_filename_out , g_filename_in ) ; g_filename_out [ len - 1 ] = ' ' ; g_filename_out [ len + 0 ] = ' ' ; g_filename_out [ len + 1 ] = ' ' ; }
This function converts the .s extension to the .cor extension for the
filename.
This function converts the . s extension to the . cor extension for the filename .