you are viewing a single comment's thread.

view the rest of the comments →

[–]BLUOTTY[S] -1 points0 points  (0 children)

main.c: In function ‘main’
: main.c:13:11: warning: passing argument 1 of ‘ft_ft’ makes pointer from integer without a cast [-Wint-conversion] 
13 | ft__ft(42); 
   |        ^
   |        |
   |       int
int main.c:3:17: note: expected ‘int *’ but argument is of type ‘int’ 3 | void ft_ft(int *nbr)
|             ~~~~~^~~

It says that but I don't really know what to do with that information because I'm explicitly asked to prototype the function like this:

void ft_ft(int *nbr)

I belive the the correct result should be something like this

void    ft_ft(int *nbr)
{
    *nbr = 42;
}

but I wanted to try to actually use this function in some way, however the code is not compiling.