C program to print environment variables

C program to print environment variables

Output:

TMPDIR=/tmp/qmfx5a
PATH=/usr/local/bin:/usr/bin:/bin
PWD=/home/6A7MBa
LANG=en_US.UTF-8
SHLVL=0
HOME=/home/6A7MBa


Implementation: