ftwin 0.8.10
human_size.h
Go to the documentation of this file.
1
6#ifndef HUMAN_SIZE_H
7#define HUMAN_SIZE_H
8
9#ifdef HAVE_CONFIG_H
10#include "config.h"
11#endif
12#include <apr_general.h>
13
23apr_off_t parse_human_size(const char *size_str);
24
35const char *format_human_size(apr_off_t size, apr_pool_t *pool);
36
37#endif /* HUMAN_SIZE_H */
const char * format_human_size(apr_off_t size, apr_pool_t *pool)
Formats a size in bytes into a human-readable string.
Definition human_size.c:13
apr_off_t parse_human_size(const char *size_str)
Parses a human-readable size string (e.g., "10M", "2.5G") into bytes.
Definition human_size.c:32