> I checked if it had code I had written at my previous employer that has a license allowing its use only for free games and requiring attaching the license.
yeah it does
That's a pretty bad example. He prompted it using the exact function header taken from the code he is complaining about.
It'd be much more interesting if he setup a function that was doing a similar thing but with different parameter types and names, and a different order of parameters (ie, like a real problem).
Does that matter? A code provided should be provided with the license needed to use the code, otherwise the user is opening themselves up to litigation.
Hence why I agree with another comment somewhere that Microsoft is banking on software developers not litigating about use of their open source code in closed source projects.
It'd be much more interesting if he setup a function that was doing a similar thing but with different parameter types and names, and a different order of parameters (ie, like a real problem).