This commit is contained in:
Your Name 2024-07-09 22:54:12 +03:00
parent 33b89e64da
commit 34fbb11114
6 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,7 @@
#include "human.h"
char mu_hs_buf[MU_HUMAN_BUF_SIZE + 1];
char *mu_humansize(off_t n, off_t block) {
memset(mu_hs_buf, '\0', sizeof(mu_hs_buf));

View file

@ -6,7 +6,6 @@
#include <string.h>
#define MU_HUMAN_BUF_SIZE 16
static char mu_hs_buf[MU_HUMAN_BUF_SIZE + 1];
char *mu_humansize(off_t n, off_t block);
#endif

View file

@ -2,6 +2,8 @@
#include <sys/stat.h>
#include "mode_to_str.h"
char mode[11];
char *mu_mode_2_str(mode_t file_mode) {
snprintf(mode, sizeof(mode), "----------");

View file

@ -1,6 +1,5 @@
#ifndef _MODE_TO_STR_H
#define _MODE_TO_STR_H
static char mode[11];
char *mu_mode_2_str(mode_t file_mode);
#endif