I want to know how to generate an RSA private key using the OpenSSL library in my C source file. I know how to generate it using terminal commands.

Actually, my server.c file will generate a private key and send it to client.c.

Please help me with some source code if possible, any other help is appreciated as well.

I'm on a Linux machine.

Edit
Report