Write 4 functions in pure C++ for linux -- 2

Job ID: 35590437

Budget: $30 – $250 USD

Requirements:
It is necessary to write functions in pure c++, use only <*.h>/"*.h" libraries without any <iostrem> and the like.
Functions must be written strictly for Linux and tested strictly on Linux! If you want to do everything on windows - go away!
Also note that the functions will be used on different Linux systems, with different versions of gcc, so you need to write in pure c++.

1. The function generates 4 keys of 32 symbols and writes them into 4 char variables.
Let's say at the beginning of the script four variables are specified:
static char key_1[32];
static char key_2[32];
static char key_3[32];
static char key_4[32];
and a function that generates 4 random keys and loop writes
into each of char variables

2. The function which generates activation key system format: xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
and also writes to the variable static char indetificator[34];

3. Function that sends a post request to the server where the data.php document is located, the post request must have the following body:
key1=*&key2=*&key3=*&key4=*&indetificator=* where * is dnne 4 keys and activation key generated above.

and depending on the response does the following actions:
If the response code is 200 and in the response.text if the keyword is let's say "The keys are valid"
the function should return true

If the response code is not 200, or there is no keyword in the response.text, or the server is not found, or there is an error during the query execution
in general if anything is possible except the 200 response code and the keyword "The keys are valid" in the response.text
function should return false

4. Function which checks total amount of RAM on computer and returns int