Skip to content

Error nl, tab, empty space #582

@Pchamallow

Description

@Pchamallow

Bug is :
For an array of function pointers, the following errors are cleared depending on the type:

Erroneous code
Please use markdown to send the code here.

int	ft_printf(const char *format, ...)
{
	size_t	count;
	va_list	args;
	int		fd;
	int		(*ft_format[127])(va_list, int);

	count = 0;
	va_start(args, format);
	ft_initformat(ft_format);

no error with int :
int ft_printf(const char *format, ...)
{
size_t count;
va_list args;
int fd;
int (*ft_format[127])(va_list, int);

count = 0;
va_start(args, format);
ft_initformat(ft_format);

etc..

Error :
Error: NL_AFTER_VAR_DECL (line: 41, col: 1): Variable declarations must be followed by a newline
Error: TAB_INSTEAD_SPC (line: 41, col: 11): Found tab when expecting space
Error: EMPTY_LINE_FUNCTION (line: 42, col: 1): Empty line in function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions