For example, I have code
int main()
{
myFunction();
MitCopyPastedFunction();
}
where I have copied a section of code from a MIT licensed library. In this case, i want to release my project code with all right reserved.
is this allowed under MIT licensing of the library?
If it is allowed, I believe I would still need to include original MIT license notice due to
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
in this case, how can I include this without having the included MIT license for library applying to my original code which is not intended to be MIT licensed?