This repository contains example C code to retrieve the Raspberry Pi Serial Number
Read the serial number from /proc/cpuinfo
Get the serial number using the Raspberry Pi Mailbox interface
Get the serial number using libbcm_host
cd raspi_serialnumber
mkdir build
cd build
cmake ..
make