mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 13:55:41 +00:00
6820631175
For multiple reasons the program is now split: - Make future porting to OpenBSD easier - Assign header includes to individiual functions - Make future program extensions easier - Recompile only changed parts
13 lines
177 B
C
13 lines
177 B
C
#include <stdio.h>
|
|
|
|
#include "util.h"
|
|
|
|
const char *
|
|
temp(const char *file)
|
|
{
|
|
int temp;
|
|
|
|
return (pscanf(file, "%d", &temp) == 1) ?
|
|
bprintf("%d", temp / 1000) : NULL;
|
|
}
|