Skip to content

Instantly share code, notes, and snippets.

View wesleymesquita's full-sized avatar
🎯
Focusing

Wesley Mesquita wesleymesquita

🎯
Focusing
View GitHub Profile
/*Write on syslog - INFO*/
#include <syslog.h>
int record_syslog_info(const char* topic, const char* msg)
{
openlog(topic, msg, 0);
syslog(LOG_INFO, msg);
closelog();
return 0;
#include <sys/utsname.h>
#include <stdio.h>
/**
uname implementation
*/
int main(){
struct utsname name;
uname(&name);