Closed luarockr closed 4 years ago
You're correct in that it doesn't work anymore. It not a bug, it because I changed the compiler to disallow arrays as function parameters.
The reason for this is that C doesn't actually copy the array, but uses pointers 'behind the scenes'. I want to get rid of this behaviour. So you could not use sizeof(param) to get the whole size and it was possible to pass char[10] into a function with parameter char[2]. So c2c now disallows it.
With new version of c2c (2020-05-25) it is not possible to use arrays as function parameters, with the previous version this was working well.