using common.c to extract date and using nios.c to check kernel version(a bit specific to nios) and using c api instead of system command to get uname

This commit is contained in:
2020-09-10 18:41:31 +02:00
parent cf8785ad2e
commit 00f780665f
6 changed files with 74 additions and 85 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <stdio.h>
#include <time.h>
/**
* Convert a value from a range to a different range (eg voltage to dac or vice
@ -16,4 +17,6 @@
int ConvertToDifferentRange(int inputMin, int inputMax, int outputMin,
int outputMax, int inputValue, int *outputValue);
int getAbsPath(char *buf, size_t bufSize, char *fname);
int getAbsPath(char *buf, size_t bufSize, char *fname);
int GetTimeFromString(char *buf, time_t *result);