Let me take a general example to demonstrate my dilemma.
Say I am making a web-based project (which I am). Now I want to use some code that is used some other place already. Say I want to incorporate some flash game on my page; now the basic rules of the games will be the same, but someone must have implemented it first. Now if I want to use that game on my webpage, do I need to buy the license from somewhere, or can I do it without any issues?
Because all it will take me is to copy paste that particular code into my current project. What to do.. and whom to contact. (Because I will never be able to find the original person who thought of the rules. :P )