This solution is a collection of C functions for micrcontrollers and for Linux systems.

Tons of useful functions including:
 • Generate random string: void rand_string(char * str, int len);
 • Daemonize an application: void daemonize();
 • Interactive control: void hit_enter_continue(), char get_single_key()
 • Time functions: uint32_t get_unixtime(), char * get_time_str();
 • Run Linux commands with result or retcode: run_cmd_withresult(...), run_cmd_retcode(...)
 • Get network info: net_get_netmask(...), net_get_mac(...), net_get_hostname(...)
 • And more.....

Sign Up For Full Access
Members gain full access to the Prosource library with dozens of source files for ARM Cortex, ATMega, PIC processors as well as desktop and embedded Linux systems. Solutions for bootloaders, Buildroot and Yocto targets as well as guided articles on embedded development to gain critical knowledge in new systems and speed up development.
Statistics:
Language:C
Files:4
Lines:828
Files size: 20.91 KB
 
RAM usage:Not Set
Avg Flash:Not Set
Code:
Source #1 - Members Only
Source #2 - Members Only
Source #3 - Members Only
Source #4 - Members Only